2013-12-11 11:37:27 +01:00
|
|
|
|
Name:valentina
|
|
|
|
|
|
2015-03-26 09:01:56 +01:00
|
|
|
|
Requires(post): /sbin/ldconfig
|
|
|
|
|
Requires(postun): /sbin/ldconfig
|
|
|
|
|
BuildRequires: ccache
|
|
|
|
|
|
2013-12-11 11:37:27 +01:00
|
|
|
|
# Fedora specifics
|
|
|
|
|
%if 0%{?fedora_version} > 0 || 0%{?rhel_version} > 0 || 0%{?centos_version} > 0
|
2014-12-23 15:54:47 +01:00
|
|
|
|
BuildRequires: pkgconfig(Qt5Core)
|
|
|
|
|
BuildRequires: pkgconfig(Qt5Gui)
|
|
|
|
|
BuildRequires: pkgconfig(Qt5Network)
|
|
|
|
|
BuildRequires: pkgconfig(Qt5PrintSupport)
|
|
|
|
|
BuildRequires: pkgconfig(Qt5Widgets)
|
|
|
|
|
BuildRequires: pkgconfig(Qt5Xml)
|
2015-04-01 19:16:15 +02:00
|
|
|
|
BuildRequires: qt5-qtxmlpatterns-devel >= 5.0.0
|
|
|
|
|
BuildRequires: qt5-qtsvg-devel >= 5.0.0
|
|
|
|
|
BuildRequires: qt5-qttools-devel >= 5.0.0
|
2015-03-27 09:41:15 +01:00
|
|
|
|
|
2015-04-01 19:16:15 +02:00
|
|
|
|
Requires: qt5-qtsvg >= 5.0.0
|
|
|
|
|
Requires: qt5-qtbase-gui >= 5.0.0
|
|
|
|
|
Requires: qt5-qtxmlpatterns >= 5.0.0
|
2013-12-11 11:37:27 +01:00
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# SUSE Specifics
|
|
|
|
|
%if 0%{?suse_version} > 0
|
2014-12-23 15:54:47 +01:00
|
|
|
|
BuildRequires: libqt5-qtbase-devel
|
|
|
|
|
BuildRequires: libqt5-qttools
|
|
|
|
|
BuildRequires: libQt5Svg-devel
|
|
|
|
|
BuildRequires: update-desktop-files
|
2015-04-02 18:03:38 +02:00
|
|
|
|
|
|
|
|
|
%if 0%{?suse_version} >= 1310
|
|
|
|
|
BuildRequires: libQt5XmlPatterns-devel
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?suse_version} >= 1320
|
|
|
|
|
BuildRequires: libqt5-linguist-devel
|
|
|
|
|
BuildRequires: libqt5-qtxmlpatterns-devel
|
|
|
|
|
%endif
|
|
|
|
|
|
2013-12-11 11:37:27 +01:00
|
|
|
|
%endif
|
|
|
|
|
|
2015-03-27 09:41:15 +01:00
|
|
|
|
Requires: poppler-utils
|
|
|
|
|
|
2015-05-17 17:35:29 +02:00
|
|
|
|
Version: 0.3.3
|
2014-12-22 20:46:13 +01:00
|
|
|
|
Release: 0
|
2013-12-11 11:37:27 +01:00
|
|
|
|
URL: https://bitbucket.org/dismine/valentina
|
|
|
|
|
License: GPL-3.0+
|
2014-12-22 18:06:24 +01:00
|
|
|
|
Source0: %{name}-%{version}.tar
|
2013-12-11 11:37:27 +01:00
|
|
|
|
Group: Graphics
|
|
|
|
|
Summary: Pattern Making Application
|
2014-12-22 18:06:24 +01:00
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
Packager: Roman Telezhinskyi <dismine@gmail.com>
|
2013-12-11 11:37:27 +01:00
|
|
|
|
|
2015-03-26 09:01:56 +01:00
|
|
|
|
# Disables debug packages and stripping of binaries:
|
|
|
|
|
%global _enable_debug_package 0
|
|
|
|
|
%global __debug_install_post %{nil}
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
%if 0%{?suse_version} >= 1320
|
|
|
|
|
%global suse_insert_debug_package %{nil}
|
|
|
|
|
%global _suse_insert_debug_package %{nil}
|
|
|
|
|
%global _suse_insert_debug_package_seen %{nil}
|
|
|
|
|
%endif
|
|
|
|
|
|
2013-12-11 11:37:27 +01:00
|
|
|
|
%description
|
2014-12-22 18:06:24 +01:00
|
|
|
|
Valentina is a cross-platform patternmaking program which allows designers
|
|
|
|
|
to create and model patterns of clothing. This software allows pattern
|
|
|
|
|
creation, using either standard sizing tables or an individual’s set of
|
|
|
|
|
measurements. It blends new technologies with traditional methods to create
|
|
|
|
|
a unique pattern making tool.
|
2013-12-11 11:37:27 +01:00
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
2014-12-23 15:54:47 +01:00
|
|
|
|
%if 0%{?suse_version} >= 1320
|
|
|
|
|
qmake-qt5 PREFIX=%{buildroot}%{_prefix} LRELEASE=lrelease-qt5 Valentina.pro -r
|
|
|
|
|
%else
|
|
|
|
|
qmake-qt5 PREFIX=%{buildroot}%{_prefix} Valentina.pro -r
|
|
|
|
|
%endif
|
2013-12-11 11:37:27 +01:00
|
|
|
|
%{__make} %{?jobs:-j %jobs}
|
|
|
|
|
|
|
|
|
|
%install
|
2015-03-26 09:01:56 +01:00
|
|
|
|
export NO_DEBUGINFO_STRIP_DEBUG=true
|
2014-12-22 18:06:24 +01:00
|
|
|
|
%{__make} install
|
|
|
|
|
gzip -9c dist/debian/%{name}.1 > dist/debian/%{name}.1.gz &&
|
|
|
|
|
%{__install} -Dm 644 dist/debian/%{name}.1.gz %{buildroot}%{_mandir}/man1/%{name}.1.gz
|
|
|
|
|
|
2013-12-11 11:37:27 +01:00
|
|
|
|
%if 0%{?suse_version} > 0
|
|
|
|
|
%suse_update_desktop_file -r %{name} VectorGraphics
|
|
|
|
|
%endif
|
|
|
|
|
|
2015-03-26 09:01:56 +01:00
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
2013-12-11 11:37:27 +01:00
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root,-)
|
2014-12-22 18:06:24 +01:00
|
|
|
|
%doc README.txt LICENSE_GPL.txt
|
2013-12-11 11:37:27 +01:00
|
|
|
|
%doc %{_mandir}/man1/%{name}.1.gz
|
2015-03-26 09:01:56 +01:00
|
|
|
|
%{_bindir}/valentina
|
|
|
|
|
%{_libdir}/libvpropertyexplorer.so
|
|
|
|
|
%{_libdir}/libvpropertyexplorer.so.*
|
|
|
|
|
%{_libdir}/libqmuparser.so
|
|
|
|
|
%{_libdir}/libqmuparser.so.*
|
2013-12-11 11:37:27 +01:00
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
2014-12-22 18:06:24 +01:00
|
|
|
|
%{_datadir}/pixmaps/*
|
2013-12-11 11:37:27 +01:00
|
|
|
|
%dir %{_datadir}/%{name}
|
|
|
|
|
%dir %{_datadir}/%{name}/translations
|
2014-12-22 18:06:24 +01:00
|
|
|
|
%{_datadir}/%{name}/translations/*.qm
|
2014-12-23 15:54:47 +01:00
|
|
|
|
%dir %{_datadir}/%{name}/tables
|
2014-12-22 18:06:24 +01:00
|
|
|
|
%dir %{_datadir}/%{name}/tables/standard
|
|
|
|
|
%{_datadir}/%{name}/tables/standard/*.vst
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
|
|
|
|
|
|
2013-12-11 11:37:27 +01:00
|
|
|
|
|
|
|
|
|
%changelog
|
2014-12-22 18:06:24 +01:00
|
|
|
|
* Mon Dec 22 2014 Roman Telezhinskyi
|
2013-12-11 11:37:27 +01:00
|
|
|
|
- Initial build
|
2015-03-27 09:41:15 +01:00
|
|
|
|
|