2013-12-11 11:37:27 +01:00
|
|
|
|
Name:valentina
|
|
|
|
|
|
|
|
|
|
# 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)
|
|
|
|
|
BuildRequires: qt5-qtxmlpatterns-devel >= 5.2.0
|
|
|
|
|
BuildRequires: qt5-qtsvg-devel >= 5.2.0
|
|
|
|
|
BuildRequires: qt5-qttools-devel >= 5.2.0
|
|
|
|
|
BuildRequires: ccache
|
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: libqt5-qtxmlpatterns-devel
|
|
|
|
|
BuildRequires: libqt5-linguist-devel
|
|
|
|
|
BuildRequires: ccache
|
|
|
|
|
BuildRequires: update-desktop-files
|
2013-12-11 11:37:27 +01:00
|
|
|
|
%endif
|
|
|
|
|
|
2015-01-04 11:50:29 +01:00
|
|
|
|
Version: 0.2.9
|
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
|
2014-12-22 20:46:13 +01:00
|
|
|
|
Requires: poppler-utils
|
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
|
|
|
|
|
|
|
|
|
%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
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
%{_bindir}/*
|
2014-12-22 18:06:24 +01:00
|
|
|
|
%{_libdir}/*
|
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}
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
ldconfig
|
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
|
|
|
|
|
|
2014-12-22 20:46:13 +01:00
|
|
|
|
|
2014-12-23 15:54:47 +01:00
|
|
|
|
|