First try create rpm package.
--HG-- branch : develop
This commit is contained in:
parent
2d98ad5075
commit
42275e32b0
1
dist/debian/valentina.install
vendored
1
dist/debian/valentina.install
vendored
|
@ -4,4 +4,3 @@ usr/share/valentina/translations/*
|
||||||
usr/share/valentina/tables/standard/*
|
usr/share/valentina/tables/standard/*
|
||||||
usr/share/pixmaps/*
|
usr/share/pixmaps/*
|
||||||
usr/share/applications/*
|
usr/share/applications/*
|
||||||
dist/application-x-valentina-pattern.png usr/share/pixmaps
|
|
||||||
|
|
18
dist/rpm/_service
vendored
Normal file
18
dist/rpm/_service
vendored
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
<services>
|
||||||
|
<service name="tar_scm">
|
||||||
|
<param name="url">https://github.com/dismine/Valentina.git</param>
|
||||||
|
<param name="versionprefix">0.2.8-alpha</param>
|
||||||
|
<param name="filename">valentina</param>
|
||||||
|
<param name="branch">master</param>
|
||||||
|
<param name="scm">git</param>
|
||||||
|
</service>
|
||||||
|
<service name="extract_file">
|
||||||
|
<param name="archive">*.tar</param>
|
||||||
|
<param name="files">*/dist/rpm/valentina.spec</param>
|
||||||
|
</service>
|
||||||
|
<service name="recompress">
|
||||||
|
<param name="file">*.tar</param>
|
||||||
|
<param name="compression">gz</param>
|
||||||
|
</service>
|
||||||
|
<service name="set_version"/>
|
||||||
|
</services>
|
56
dist/rpm/valentina.spec
vendored
56
dist/rpm/valentina.spec
vendored
|
@ -2,68 +2,70 @@ Name:valentina
|
||||||
|
|
||||||
# Fedora specifics
|
# Fedora specifics
|
||||||
%if 0%{?fedora_version} > 0 || 0%{?rhel_version} > 0 || 0%{?centos_version} > 0
|
%if 0%{?fedora_version} > 0 || 0%{?rhel_version} > 0 || 0%{?centos_version} > 0
|
||||||
BuildRequires: pkgconfig(Qt5Core) libqt5-qttools >= 5.0.0 libQtSvg-devel >= 5.0.0 ccache
|
BuildRequires: pkgconfig(Qt5Core) libqt5-qttools >= 5.2.0 libQtSvg-devel >= 5.2.0 ccache
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# SUSE Specifics
|
# SUSE Specifics
|
||||||
%if 0%{?suse_version} > 0
|
%if 0%{?suse_version} > 0
|
||||||
BuildRequires: libqt5-qtbase-devel >= 5.0.0 libqt5-qttools >= 5.0.0 libQt5Svg-devel >= 5.0.0 ccache update-desktop-files
|
BuildRequires: libqt5-qtbase-devel >= 5.2.0 libqt5-qttools >= 5.2.0 libQt5Svg-devel >= 5.2.0 ccache update-desktop-files
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Version: 0.2.2
|
Version: 0.2.8
|
||||||
Release: 1
|
Release: 1
|
||||||
URL: https://bitbucket.org/dismine/valentina
|
URL: https://bitbucket.org/dismine/valentina
|
||||||
License: GPL-3.0+
|
License: GPL-3.0+
|
||||||
Source0: %{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar
|
||||||
Group: Graphics
|
Group: Graphics
|
||||||
Summary: Pattern Making Application
|
Summary: Pattern Making Application
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
Packager: Roman Telezhinsky <dismine@gmail.com>
|
Packager: Roman Telezhinskyi <dismine@gmail.com>
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Open source project of creating a pattern making program, whose allow
|
Valentina is a cross-platform patternmaking program which allows designers
|
||||||
create and modeling patterns of clothing.
|
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.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}
|
%setup -q -n %{name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
qmake-qt5
|
qmake-qt5 PREFIX=%{_prefix} Valentina.pro -r
|
||||||
%{__make} %{?jobs:-j %jobs}
|
%{__make} %{?jobs:-j %jobs}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p $RPM_BUILD_ROOT/usr/{bin,share}
|
%{__make} install
|
||||||
mkdir -p $RPM_BUILD_ROOT/usr/share/%{name}/translations
|
gzip -9c dist/debian/%{name}.1 > dist/debian/%{name}.1.gz &&
|
||||||
%{__install} -Dm 755 -s bin/%{name} %{buildroot}%{_bindir}/%{name}
|
%{__install} -Dm 644 dist/debian/%{name}.1.gz %{buildroot}%{_mandir}/man1/%{name}.1.gz
|
||||||
%{__install} -Dm 644 dist/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
|
|
||||||
%{__install} -Dm 644 dist/%{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
|
|
||||||
%{__install} -Dm 644 dist/%{name}.1.gz %{buildroot}%{_mandir}/man1/%{name}.1.gz
|
|
||||||
%{__install} -Dm 644 share/translations/valentina_uk.qm %{buildroot}%{_datadir}/%{name}/translations/valentina_uk.qm
|
|
||||||
%{__install} -Dm 644 share/translations/valentina_ru.qm %{buildroot}%{_datadir}/%{name}/translations/valentina_ru.qm
|
|
||||||
%if 0%{?suse_version} > 0
|
%if 0%{?suse_version} > 0
|
||||||
%suse_update_desktop_file -r %{name} VectorGraphics
|
%suse_update_desktop_file -r %{name} VectorGraphics
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%clean
|
|
||||||
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
|
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc README LICENSE
|
%doc README.txt LICENSE_GPL.txt
|
||||||
%doc %{_mandir}/man1/%{name}.1.gz
|
%doc %{_mandir}/man1/%{name}.1.gz
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
|
%{_libdir}/*
|
||||||
%{_datadir}/applications/%{name}.desktop
|
%{_datadir}/applications/%{name}.desktop
|
||||||
%{_datadir}/pixmaps/%{name}.png
|
%{_datadir}/pixmaps/*
|
||||||
%{_datadir}/%{name}/translations/valentina_uk.qm
|
|
||||||
%{_datadir}/%{name}/translations/valentina_ru.qm
|
|
||||||
%dir %{_datadir}/%{name}
|
%dir %{_datadir}/%{name}
|
||||||
%dir %{_datadir}/%{name}/translations
|
%dir %{_datadir}/%{name}/translations
|
||||||
|
%{_datadir}/%{name}/translations/*.qm
|
||||||
|
%dir %{_datadir}/%{name}/tables/standard
|
||||||
|
%{_datadir}/%{name}/tables/standard/*.vst
|
||||||
|
|
||||||
|
%clean
|
||||||
|
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
|
||||||
|
|
||||||
|
%post
|
||||||
|
ldconfig
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Mon Dec 9 2013 Roman Telezhinsky
|
* Mon Dec 22 2014 Roman Telezhinskyi
|
||||||
- Initial build
|
- Initial build
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -178,13 +178,14 @@ unix{
|
||||||
# Path to bin file after installation
|
# Path to bin file after installation
|
||||||
target.path = $$PREFIX/bin
|
target.path = $$PREFIX/bin
|
||||||
|
|
||||||
# .desctop file
|
# .desktop file
|
||||||
desktop.path = $$DATADIR/applications/
|
desktop.path = $$DATADIR/applications/
|
||||||
desktop.files += ../../dist/$${TARGET}.desktop
|
desktop.files += ../../dist/$${TARGET}.desktop
|
||||||
|
|
||||||
# logo
|
# logo
|
||||||
pixmaps.path = $$DATADIR/pixmaps/
|
pixmaps.path = $$DATADIR/pixmaps/
|
||||||
pixmaps.files += ../../dist/$${TARGET}.png
|
pixmaps.files += ../../dist/$${TARGET}.png \
|
||||||
|
../../dist/application-x-valentina-pattern.png
|
||||||
|
|
||||||
# Path to translation files after installation
|
# Path to translation files after installation
|
||||||
translations.path = $$DATADIR/$${TARGET}/translations/
|
translations.path = $$DATADIR/$${TARGET}/translations/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user