Commit 9bc316d8 authored by Gil Moskowitz's avatar Gil Moskowitz

Merge pull request #53 from jakeholcombe/fedora-pkg

Update RPM spec file, use desktop-file-install
parents 14cd1788 d7367b12
This diff is collapsed.
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=MetaSQL Import
Icon=/usr/share/openrpt/OpenRPT/images/OpenReportsIcon.xpm
Icon=/usr/share/openrpt/OpenRPT/images/OpenReportsIcon128.png
Exec=importmqlgui
Terminal=false
Categories=Office;
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=OpenRPT Import
Icon=/usr/share/openrpt/OpenRPT/images/OpenReportsIcon.xpm
Icon=/usr/share/openrpt/OpenRPT/images/OpenReportsIcon128.png
Exec=importrptgui
Terminal=false
Categories=Office;
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=OpenRPT Report Writer
Icon=/usr/share/openrpt/OpenRPT/images/OpenReportsIcon.xpm
Icon=/usr/share/openrpt/OpenRPT/images/OpenReportsIcon128.png
Exec=openrpt
Terminal=false
Categories=Office;
Name: xtuple-openrpt
Version: 3.3.8
Version: 3.3.9
Release: 1%{?dist}
Summary: xTuple reporting utility and libraries
Summary: xTuple / PostBooks reporting utility and libraries
License: CPAL
Url: http://www.xtuple.com/openrpt/
Source: https://github.com/xtuple/openrpt/archive/v%version.tar.gz
BuildRequires: desktop-file-utils
BuildRequires: qt-devel
BuildRequires: libdmtx-devel
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
......@@ -72,8 +73,10 @@ mkdir -p %{buildroot}%{_includedir}/openrpt
find . -name '*.h' -exec install -m 0644 -D {} %{buildroot}%{_includedir}/openrpt/{} \;
mkdir -p %{buildroot}%{_datadir}/openrpt/OpenRPT/images
cp -r OpenRPT/images/* %{buildroot}%{_datadir}/openrpt/OpenRPT/images
rm %{buildroot}%{_datadir}/openrpt/OpenRPT/images/icons_24x24/Thumbs.db
rm %{buildroot}%{_datadir}/openrpt/OpenRPT/images/openrpt_qembed.h
mkdir -p %{buildroot}%{_datadir}/applications
install -m 0644 *.desktop %{buildroot}%{_datadir}/applications
desktop-file-install --dir=%{buildroot}%{_datadir}/applications *.desktop
%post libs -p /sbin/ldconfig
......@@ -84,10 +87,10 @@ install -m 0644 *.desktop %{buildroot}%{_datadir}/applications
%{_datadir}/applications/*.desktop
%files libs
%license COPYING
%{_libdir}/lib*.so.*
%files images
%license COPYING
%dir %{_datadir}/openrpt
%dir %{_datadir}/openrpt/OpenRPT
%dir %{_datadir}/openrpt/OpenRPT/images
......@@ -96,7 +99,7 @@ install -m 0644 *.desktop %{buildroot}%{_datadir}/applications
%dir %{_datadir}/openrpt/OpenRPT/images/icons_32x32
%dir %{_datadir}/openrpt/OpenRPT/images/icons_64x64
%dir %{_datadir}/openrpt/OpenRPT/images/icons_16x16
%{_datadir}/openrpt/OpenRPT/images/*
%{_datadir}/openrpt/OpenRPT/images/*.*
%{_datadir}/openrpt/OpenRPT/images/icons_*/*
%files devel
......@@ -108,6 +111,6 @@ install -m 0644 *.desktop %{buildroot}%{_datadir}/applications
%{_libdir}/libwrtembed.so
%changelog
* Wed Feb 25 2015 Daniel Pocock <daniel@pocock.pro> - 3.3.7-1
* Wed Feb 25 2015 Daniel Pocock <daniel@pocock.pro> - 3.3.9-1
- Initial RPM packaging.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment