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
|
2019-04-05 14:42:22 +02:00
|
|
|
|
BuildRequires: qt5-qtbase-devel >= 5.4.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-06-11 09:38:18 +02:00
|
|
|
|
BuildRequires: pkgconfig(Qt5XmlPatterns)
|
2019-04-05 14:42:22 +02:00
|
|
|
|
BuildRequires: qt5-qtxmlpatterns-devel >= 5.4.0
|
|
|
|
|
BuildRequires: qt5-qtsvg-devel >= 5.4.0
|
|
|
|
|
BuildRequires: qt5-qttools-devel >= 5.4.0
|
2015-11-27 16:39:09 +01:00
|
|
|
|
|
2019-04-05 14:42:22 +02:00
|
|
|
|
Requires: qt5-qtsvg >= 5.4.0
|
|
|
|
|
Requires: qt5-qtbase-gui >= 5.4.0
|
|
|
|
|
Requires: qt5-qtxmlpatterns >= 5.4.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
|
2019-04-05 14:42:22 +02:00
|
|
|
|
BuildRequires: libqt5-devel >= 5.4.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(Qt5XmlPatterns)
|
2018-06-11 10:29:15 +02:00
|
|
|
|
BuildRequires: libproxy-pacrunner
|
2018-06-11 12:45:52 +02:00
|
|
|
|
BuildRequires: qttools5
|
2019-04-05 14:42:22 +02:00
|
|
|
|
BuildRequires: qtbase5-common-devel >= 5.4.0
|
2018-06-11 11:18:42 +02:00
|
|
|
|
|
2021-01-23 17:47:41 +01:00
|
|
|
|
Requires: qtimageformats5
|
|
|
|
|
|
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
|
|
|
|
|
|
2020-01-31 11:04:53 +01:00
|
|
|
|
%endif # %if 0%{?mageia} > 0
|
2018-06-11 09:38:18 +02:00
|
|
|
|
|
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
|
|
|
|
|
2021-01-23 17:47:41 +01:00
|
|
|
|
Requires: libqt5-qtimageformats
|
|
|
|
|
|
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
|
|
|
|
|
2019-11-29 14:06:39 +01:00
|
|
|
|
# CentOS 7.0 specifics
|
2020-01-31 11:06:57 +01:00
|
|
|
|
#%if 0%{?centos_version} >= 700 && 0%{?centos_version} < 800
|
|
|
|
|
#BuildRequires: llvm-private
|
|
|
|
|
#%endif
|
2019-11-29 14:06:39 +01:00
|
|
|
|
|
|
|
|
|
# CentOS 8.0 specifics
|
2020-01-31 11:06:57 +01:00
|
|
|
|
#%if 0%{?centos_version} >= 800
|
|
|
|
|
#BuildRequires: clang-libs
|
|
|
|
|
#%endif
|
2019-11-29 14:06:39 +01:00
|
|
|
|
|
2020-07-10 19:46:49 +02:00
|
|
|
|
%if 0%{?mageia} > 0
|
|
|
|
|
Requires: poppler
|
2020-07-13 18:45:35 +02:00
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?suse_version} > 0
|
2020-07-10 19:46:49 +02:00
|
|
|
|
Requires: poppler-tools
|
2020-07-13 18:45:35 +02:00
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora_version} > 0 || 0%{?rhel_version} > 0 || 0%{?centos_version} > 0
|
2020-07-10 19:46:49 +02:00
|
|
|
|
Requires: poppler-utils
|
|
|
|
|
%endif
|
2015-03-27 09:41:15 +01:00
|
|
|
|
|
2021-05-13 13:24:05 +02:00
|
|
|
|
Version: 0.7.47
|
2014-12-22 20:46:13 +01:00
|
|
|
|
Release: 0
|
2020-04-22 13:37:06 +02:00
|
|
|
|
URL: https://gitlab.com/smart-pattern/valentina
|
2013-12-11 11:37:27 +01:00
|
|
|
|
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
|
2019-07-25 18:32:50 +02:00
|
|
|
|
%if 0%{?suse_version} >= 1315 && 0%{?suse_version} != 1550
|
2019-05-28 15:32:54 +02:00
|
|
|
|
qmake-qt5 PREFIX=%{_prefix} PREFIX_LIB=%{_prefix}/%{_lib} 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
|
2019-05-28 15:32:54 +02:00
|
|
|
|
qmake PREFIX=%{_prefix} PREFIX_LIB=%{_prefix}/%{_lib} Valentina.pro -r "CONFIG += noTests noRunPath no_ccache noDebugSymbols"
|
2018-06-11 11:43:40 +02:00
|
|
|
|
%else
|
2018-12-24 18:54:18 +01:00
|
|
|
|
qmake-qt5 PREFIX=%{_prefix} PREFIX_LIB=%{_prefix}/%{_lib} 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
|
2019-07-25 16:09:02 +02:00
|
|
|
|
update-desktop-database &> /dev/null ||:
|
|
|
|
|
update-mime-database %{_datadir}/mime &> /dev/null || :
|
|
|
|
|
touch --no-create %{_datadir}/icons/hicolor || :
|
|
|
|
|
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
|
|
|
|
|
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
|
|
|
|
fi
|
2015-11-27 12:03:56 +01:00
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
/sbin/ldconfig
|
2019-07-25 16:09:02 +02:00
|
|
|
|
update-desktop-database &> /dev/null ||:
|
|
|
|
|
update-mime-database %{_datadir}/mime &> /dev/null || :
|
|
|
|
|
touch --no-create %{_datadir}/icons/hicolor || :
|
|
|
|
|
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
|
|
|
|
|
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
2015-11-27 12:03:56 +01:00
|
|
|
|
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,-)
|
2019-07-25 16:09:02 +02:00
|
|
|
|
%doc README.txt
|
|
|
|
|
%license 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.*
|
2019-07-25 16:09:02 +02:00
|
|
|
|
%dir %{_libdir}/mime/
|
|
|
|
|
%dir %{_libdir}/mime/packages/
|
2015-11-28 09:56:14 +01:00
|
|
|
|
%{_libdir}/mime/packages/%{name}
|
2019-07-25 16:09:02 +02: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
|
2019-07-25 16:09:02 +02:00
|
|
|
|
|
|
|
|
|
%dir %{_datadir}/icons/
|
|
|
|
|
%dir %{_datadir}/icons/hicolor/
|
|
|
|
|
%dir %{_datadir}/icons/hicolor/48x48/
|
|
|
|
|
%dir %{_datadir}/icons/hicolor/48x48/apps/
|
|
|
|
|
%dir %{_datadir}/icons/hicolor/48x48/mimetypes/
|
|
|
|
|
%dir %{_datadir}/icons/hicolor/64x64/
|
|
|
|
|
%dir %{_datadir}/icons/hicolor/64x64/apps/
|
|
|
|
|
%dir %{_datadir}/icons/hicolor/64x64/mimetypes/
|
|
|
|
|
%dir %{_datadir}/icons/hicolor/128x128/
|
|
|
|
|
%dir %{_datadir}/icons/hicolor/128x128/apps/
|
|
|
|
|
%dir %{_datadir}/icons/hicolor/128x128/mimetypes/
|
|
|
|
|
%dir %{_datadir}/icons/hicolor/256x256/
|
|
|
|
|
%dir %{_datadir}/icons/hicolor/256x256/apps/
|
|
|
|
|
%dir %{_datadir}/icons/hicolor/256x256/mimetypes/
|
|
|
|
|
%dir %{_datadir}/icons/hicolor/512x512/
|
|
|
|
|
%dir %{_datadir}/icons/hicolor/512x512/apps/
|
|
|
|
|
%dir %{_datadir}/icons/hicolor/512x512/mimetypes/
|
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/*.png
|
|
|
|
|
%{_datadir}/icons/hicolor/*/mimetypes/*.png
|
|
|
|
|
|
|
|
|
|
%dir %{_datadir}/%{name}/
|
2015-11-27 12:03:56 +01:00
|
|
|
|
%{_datadir}/%{name}/diagrams.rcc
|
2019-07-25 16:09:02 +02:00
|
|
|
|
%dir %{_datadir}/%{name}/translations/
|
2014-12-22 18:06:24 +01:00
|
|
|
|
%{_datadir}/%{name}/translations/*.qm
|
2019-07-25 16:09:02 +02:00
|
|
|
|
%dir %{_datadir}/%{name}/tables/
|
|
|
|
|
%dir %{_datadir}/%{name}/tables/multisize/
|
2017-07-25 06:39:42 +02:00
|
|
|
|
%{_datadir}/%{name}/tables/multisize/*.vst
|
2019-07-25 16:09:02 +02:00
|
|
|
|
%dir %{_datadir}/%{name}/tables/templates/
|
2015-11-27 12:03:56 +01:00
|
|
|
|
%{_datadir}/%{name}/tables/templates/*.vit
|
2019-07-25 16:09:02 +02:00
|
|
|
|
%dir %{_datadir}/%{name}/labels/
|
2017-08-14 16:17:40 +02:00
|
|
|
|
%{_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
|
2020-10-24 11:23:35 +02:00
|
|
|
|
* Sat Oct 24 2020 Roman Telezhynskyi
|
2015-11-27 14:15:03 +01:00
|
|
|
|
- Auto build
|
2015-03-27 09:41:15 +01:00
|
|
|
|
|