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
|
2015-11-27 12:03:56 +01:00
|
|
|
|
|
|
|
|
|
Requires(post): desktop-file-utils
|
|
|
|
|
Requires(postun): desktop-file-utils
|
2015-03-26 09:01:56 +01:00
|
|
|
|
|
2018-01-11 11:40:06 +01:00
|
|
|
|
Conflicts: seamly2d
|
|
|
|
|
|
2017-12-31 16:26:06 +01:00
|
|
|
|
%if 0%{?fedora_version} > 0 || 0%{?rhel_version} >= 700 || 0%{?centos_version} >= 700
|
2017-04-10 21:18:36 +02:00
|
|
|
|
BuildRequires: qt5-qtbase-devel >= 5.2.0
|
2015-11-27 16:39:09 +01:00
|
|
|
|
BuildRequires: pkgconfig(Qt5Svg)
|
|
|
|
|
BuildRequires: pkgconfig(Qt5Core)
|
|
|
|
|
BuildRequires: pkgconfig(Qt5Gui)
|
|
|
|
|
BuildRequires: pkgconfig(Qt5Network)
|
|
|
|
|
BuildRequires: pkgconfig(Qt5PrintSupport)
|
|
|
|
|
BuildRequires: pkgconfig(Qt5Widgets)
|
|
|
|
|
BuildRequires: pkgconfig(Qt5Xml)
|
2018-01-24 12:16:29 +01:00
|
|
|
|
BuildRequires: pkgconfig(Qt5Concurrent)
|
2018-03-10 15:39:37 +01:00
|
|
|
|
BuildRequires: pkgconfig(Qt5OpenGL)
|
2018-06-11 09:38:18 +02:00
|
|
|
|
BuildRequires: pkgconfig(Qt5XmlPatterns)
|
2017-04-10 21:18:36 +02:00
|
|
|
|
BuildRequires: qt5-qtxmlpatterns-devel >= 5.2.0
|
|
|
|
|
BuildRequires: qt5-qtsvg-devel >= 5.2.0
|
|
|
|
|
BuildRequires: qt5-qttools-devel >= 5.2.0
|
2015-11-27 16:39:09 +01:00
|
|
|
|
|
2017-04-10 21:18:36 +02:00
|
|
|
|
Requires: qt5-qtsvg >= 5.2.0
|
|
|
|
|
Requires: qt5-qtbase-gui >= 5.2.0
|
|
|
|
|
Requires: qt5-qtxmlpatterns >= 5.2.0
|
2015-11-27 16:39:09 +01:00
|
|
|
|
%endif
|
2013-12-11 11:37:27 +01:00
|
|
|
|
|
2018-06-11 11:18:42 +02:00
|
|
|
|
%if 0%{?mageia} > 0
|
2018-06-11 10:29:15 +02:00
|
|
|
|
BuildRequires: libqt5-devel >= 5.2.0
|
2018-06-11 09:38:18 +02:00
|
|
|
|
BuildRequires: pkgconfig(Qt5Svg)
|
|
|
|
|
BuildRequires: pkgconfig(Qt5Core)
|
|
|
|
|
BuildRequires: pkgconfig(Qt5Gui)
|
|
|
|
|
BuildRequires: pkgconfig(Qt5Network)
|
|
|
|
|
BuildRequires: pkgconfig(Qt5PrintSupport)
|
|
|
|
|
BuildRequires: pkgconfig(Qt5Widgets)
|
|
|
|
|
BuildRequires: pkgconfig(Qt5Xml)
|
|
|
|
|
BuildRequires: pkgconfig(Qt5Concurrent)
|
|
|
|
|
BuildRequires: pkgconfig(Qt5OpenGL)
|
|
|
|
|
BuildRequires: pkgconfig(Qt5XmlPatterns)
|
2018-06-11 10:29:15 +02:00
|
|
|
|
BuildRequires: libproxy-pacrunner
|
2018-06-11 12:45:52 +02:00
|
|
|
|
BuildRequires: qttools5
|
2018-07-30 08:57:26 +02:00
|
|
|
|
BuildRequires: qtbase5-common-devel >= 5.2.0
|
2018-06-11 11:18:42 +02:00
|
|
|
|
|
|
|
|
|
%if 0%{?mageia} == 6
|
2018-06-11 10:29:15 +02:00
|
|
|
|
BuildRequires: pkgconfig(openssl)
|
2018-06-11 11:18:42 +02:00
|
|
|
|
%else
|
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
|
%endif
|
|
|
|
|
|
2018-06-11 09:38:18 +02:00
|
|
|
|
%endif
|
|
|
|
|
|
2013-12-11 11:37:27 +01:00
|
|
|
|
# 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
|
|
|
|
|
2016-02-19 15:37:19 +01:00
|
|
|
|
%if 0%{?suse_version} == 1310
|
2015-04-02 18:03:38 +02:00
|
|
|
|
BuildRequires: libQt5XmlPatterns-devel
|
|
|
|
|
%endif
|
|
|
|
|
|
2016-02-19 15:37:19 +01:00
|
|
|
|
%if 0%{?suse_version} >= 1315
|
2015-04-02 18:03:38 +02:00
|
|
|
|
BuildRequires: libqt5-linguist-devel
|
|
|
|
|
BuildRequires: libqt5-qtxmlpatterns-devel
|
|
|
|
|
%endif
|
|
|
|
|
|
2017-12-31 16:26:06 +01:00
|
|
|
|
%endif # %if 0%{?suse_version} > 0
|
2013-12-11 11:37:27 +01:00
|
|
|
|
|
2015-03-27 09:41:15 +01:00
|
|
|
|
Requires: poppler-utils
|
|
|
|
|
|
2018-10-12 15:20:19 +02:00
|
|
|
|
Version: 0.7.0
|
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+
|
2016-02-20 17:44:08 +01:00
|
|
|
|
Source0: %{name}-%{version}.tar.gz
|
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}
|
2016-02-19 15:37:19 +01:00
|
|
|
|
%if 0%{?suse_version} >= 1315
|
2015-03-26 09:01:56 +01:00
|
|
|
|
%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
|
2016-02-19 15:37:19 +01:00
|
|
|
|
%if 0%{?suse_version} >= 1315
|
2016-02-19 19:37:41 +01:00
|
|
|
|
qmake-qt5 PREFIX=%{_prefix} LRELEASE=lrelease-qt5 Valentina.pro -r "CONFIG += noTests noRunPath no_ccache noDebugSymbols"
|
2014-12-23 15:54:47 +01:00
|
|
|
|
%else
|
2018-06-11 11:18:42 +02:00
|
|
|
|
|
|
|
|
|
%if 0%{?mageia} >= 6
|
|
|
|
|
qmake PREFIX=%{_prefix} Valentina.pro -r "CONFIG += noTests noRunPath no_ccache noDebugSymbols"
|
2018-06-11 11:43:40 +02:00
|
|
|
|
%else
|
|
|
|
|
qmake-qt5 PREFIX=%{_prefix} Valentina.pro -r "CONFIG += noTests noRunPath no_ccache noDebugSymbols"
|
2018-06-11 11:18:42 +02:00
|
|
|
|
%endif
|
2018-06-11 11:43:40 +02:00
|
|
|
|
|
|
|
|
|
%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
|
2015-11-27 14:15:03 +01:00
|
|
|
|
|
|
|
|
|
%{__make} INSTALL_ROOT=%{buildroot} install
|
|
|
|
|
|
2014-12-22 18:06:24 +01:00
|
|
|
|
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
|
|
|
|
|
|
2015-11-27 12:03:56 +01:00
|
|
|
|
gzip -9c dist/debian/tape.1 > dist/debian/tape.1.gz &&
|
|
|
|
|
%{__install} -Dm 644 dist/debian/tape.1.gz %{buildroot}%{_mandir}/man1/tape.1.gz
|
|
|
|
|
|
|
|
|
|
cp dist/debian/valentina.sharedmimeinfo dist/debian/%{name}.xml &&
|
2015-11-27 14:15:03 +01:00
|
|
|
|
%{__install} -Dm 644 dist/debian/%{name}.xml %{buildroot}%{_datadir}/mime/packages/%{name}.xml
|
2015-11-27 12:03:56 +01:00
|
|
|
|
|
|
|
|
|
cp dist/debian/valentina.mime dist/debian/%{name} &&
|
2015-11-27 14:15:03 +01:00
|
|
|
|
%{__install} -Dm 644 dist/debian/%{name} %{buildroot}%{_libdir}/mime/packages/%{name}
|
2015-11-27 12:03:56 +01:00
|
|
|
|
|
2013-12-11 11:37:27 +01:00
|
|
|
|
%if 0%{?suse_version} > 0
|
2015-11-28 16:28:05 +01:00
|
|
|
|
%suse_update_desktop_file -r %{name} Graphics VectorGraphics 2DGraphics
|
2015-11-28 12:17:45 +01:00
|
|
|
|
%suse_update_desktop_file -r tape Utility Applet
|
2013-12-11 11:37:27 +01:00
|
|
|
|
%endif
|
|
|
|
|
|
2015-11-27 12:03:56 +01:00
|
|
|
|
%post
|
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
/usr/bin/update-desktop-database &> /dev/null || :
|
|
|
|
|
/bin/touch --no-create %{_datadir}/mime/packages &>/dev/null || :
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
/usr/bin/update-desktop-database &> /dev/null || :
|
|
|
|
|
if [ $1 -eq 0 ] ; then
|
|
|
|
|
/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :
|
|
|
|
|
fi
|
2015-03-26 09:01:56 +01:00
|
|
|
|
|
2015-11-27 12:03:56 +01:00
|
|
|
|
%posttrans
|
|
|
|
|
# Fedora specifics
|
2015-11-27 16:39:09 +01:00
|
|
|
|
%if 0%{?fedora_version} > 0
|
2015-11-27 12:03:56 +01:00
|
|
|
|
/usr/bin/update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
|
|
|
|
|
%else
|
|
|
|
|
/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :
|
|
|
|
|
%endif
|
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
|
2018-06-11 13:14:51 +02:00
|
|
|
|
%doc %{_mandir}/man1/%{name}.1*
|
|
|
|
|
%doc %{_mandir}/man1/tape.1*
|
2015-03-26 09:01:56 +01:00
|
|
|
|
%{_bindir}/valentina
|
2015-11-27 12:03:56 +01:00
|
|
|
|
%{_bindir}/tape
|
2015-03-26 09:01:56 +01:00
|
|
|
|
%{_libdir}/libvpropertyexplorer.so
|
|
|
|
|
%{_libdir}/libvpropertyexplorer.so.*
|
|
|
|
|
%{_libdir}/libqmuparser.so
|
|
|
|
|
%{_libdir}/libqmuparser.so.*
|
2015-11-28 18:11:30 +01:00
|
|
|
|
%dir %{_libdir}/mime
|
|
|
|
|
%dir %{_libdir}/mime/packages
|
2015-11-28 09:56:14 +01:00
|
|
|
|
%{_libdir}/mime/packages/%{name}
|
2015-11-28 18:11:30 +01:00
|
|
|
|
%dir %{_datadir}/mime
|
|
|
|
|
%dir %{_datadir}/mime/packages
|
2015-11-28 09:56:14 +01:00
|
|
|
|
%{_datadir}/mime/packages/%{name}.xml
|
2013-12-11 11:37:27 +01:00
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
2015-11-27 12:03:56 +01:00
|
|
|
|
%{_datadir}/applications/tape.desktop
|
2014-12-22 18:06:24 +01:00
|
|
|
|
%{_datadir}/pixmaps/*
|
2013-12-11 11:37:27 +01:00
|
|
|
|
%dir %{_datadir}/%{name}
|
2015-11-27 12:03:56 +01:00
|
|
|
|
%{_datadir}/%{name}/diagrams.rcc
|
2013-12-11 11:37:27 +01:00
|
|
|
|
%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
|
2017-07-25 06:39:42 +02:00
|
|
|
|
%dir %{_datadir}/%{name}/tables/multisize
|
|
|
|
|
%{_datadir}/%{name}/tables/multisize/*.vst
|
2015-11-27 12:03:56 +01:00
|
|
|
|
%dir %{_datadir}/%{name}/tables/templates
|
|
|
|
|
%{_datadir}/%{name}/tables/templates/*.vit
|
2017-08-14 16:17:40 +02:00
|
|
|
|
%dir %{_datadir}/%{name}/labels
|
|
|
|
|
%{_datadir}/%{name}/labels/*.xml
|
2014-12-22 18:06:24 +01:00
|
|
|
|
|
|
|
|
|
%clean
|
2015-11-27 12:03:56 +01:00
|
|
|
|
rm -f dist/debian/%{name}.1.gz dist/debian/tape.1.gz dist/debian/%{name}.xml dist/debian/%{name}
|
2014-12-22 18:06:24 +01:00
|
|
|
|
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
|
|
|
|
|
|
2013-12-11 11:37:27 +01:00
|
|
|
|
|
|
|
|
|
%changelog
|
2018-06-11 11:18:42 +02:00
|
|
|
|
* Mon Jun 11 2018 Roman Telezhynskyi
|
2015-11-27 14:15:03 +01:00
|
|
|
|
- Auto build
|
2015-03-27 09:41:15 +01:00
|
|
|
|
|