valentina/valentina.spec

96 lines
2.9 KiB
RPMSpec
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Name: valentina
Version: 0.4.4
Release: 1mamba
Summary: A patternmaking program which allows designers to create and model patterns of clothing
Group: Graphical Desktop/Applications/Graphics
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://valentina-project.org/
# https://bitbucket.org/dismine/valentina/commits/610ac13345d7 select tag
Source: https://bitbucket.org/dismine/valentina/get/v%{version}.tar.bz2
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libGL-devel
BuildRequires: libgcc
BuildRequires: libqt5-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
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 individuals set of measurements. It blends new technologies with traditional methods to create a unique pattern making tool.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n lib%{name}
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q -c
mv dismine-valentina-*/* .
rm -rf dismine-valentina-*
%build
qmake-qt5 Valentina.pro
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall INSTALL_ROOT=%{buildroot}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/tape
%{_bindir}/valentina
%{_datadir}/applications/tape.desktop
%{_datadir}/applications/valentina.desktop
%{_datadir}/pixmaps/*.png
%dir %{_datadir}/valentina
%{_datadir}/valentina/diagrams.rcc
%dir %{_datadir}/valentina/tables
%dir %{_datadir}/valentina/tables/standard
%{_datadir}/valentina/tables/standard/*
%dir %{_datadir}/valentina/tables/templates
%{_datadir}/valentina/tables/templates/*
%dir %{_datadir}/valentina/translations
%{_datadir}/valentina/translations/measurements_*.qm
%{_datadir}/valentina/translations/valentina_*.qm
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libvpropertyexplorer.so.*
%{_libdir}/libqmuparser.so.*
%files -n lib%{name}-devel
%defattr(-,root,root)
%{_libdir}/libqmuparser.so
%{_libdir}/libvpropertyexplorer.so
%doc ChangeLog.txt README.txt
%changelog
* Fri Jul 15 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.4-1mamba
- package created using the webbuild interface