2010-09-14 13:04:03 +00:00
|
|
|
#
|
2011-02-14 00:43:44 +00:00
|
|
|
# spec file for package gcstar
|
2010-09-14 13:04:03 +00:00
|
|
|
#
|
2016-07-08 08:45:51 +00:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2010-09-14 13:04:03 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: gcstar
|
2016-07-08 08:45:51 +00:00
|
|
|
Version: 1.7.1
|
2012-09-21 20:42:06 +00:00
|
|
|
Release: 0
|
2010-09-14 13:04:03 +00:00
|
|
|
Summary: Application to manage collections
|
2012-09-21 20:42:06 +00:00
|
|
|
License: GPL-2.0
|
2010-09-14 13:04:03 +00:00
|
|
|
Group: Productivity/Office/Management
|
2012-09-21 20:42:06 +00:00
|
|
|
Url: http://www.gcstar.org/
|
2011-07-17 10:58:31 +00:00
|
|
|
Source0: http://download.gna.org/gcstar/%{name}-%{version}.tar.gz
|
2010-09-14 13:04:03 +00:00
|
|
|
# PATCH-FIX-OPENSUSE gcstar-fix-desktop.patch vuntz@opensuse.org -- Fix desktop file for openSUSE
|
|
|
|
Patch0: gcstar-fix-desktop.patch
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: perl
|
2012-09-21 20:42:06 +00:00
|
|
|
BuildRequires: perl-libwww-perl
|
2010-09-14 13:04:03 +00:00
|
|
|
BuildRequires: perl(Crypt::SSLeay)
|
|
|
|
BuildRequires: perl(Gtk2) >= 1.054
|
|
|
|
BuildRequires: perl(HTML::Parser)
|
|
|
|
BuildRequires: perl(XML::Parser)
|
|
|
|
BuildRequires: perl(XML::Simple)
|
2011-10-04 07:05:24 +00:00
|
|
|
# We need the %%mime_database_* macros
|
|
|
|
BuildRequires: shared-mime-info
|
2010-09-14 13:04:03 +00:00
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
Requires: perl
|
2012-09-21 20:42:06 +00:00
|
|
|
Requires: perl-libwww-perl
|
2010-09-14 13:04:03 +00:00
|
|
|
Requires: perl(Crypt::SSLeay)
|
|
|
|
Requires: perl(Gtk2) >= 1.054
|
|
|
|
Requires: perl(HTML::Parser)
|
|
|
|
Requires: perl(XML::Parser)
|
|
|
|
Requires: perl(XML::Simple)
|
2011-07-21 08:11:33 +00:00
|
|
|
Recommends: perl(Archive::Zip)
|
|
|
|
Recommends: perl(GD)
|
|
|
|
Recommends: perl(GD::Graph::area)
|
|
|
|
Recommends: perl(GD::Graph::bars)
|
|
|
|
Recommends: perl(GD::Graph::pie)
|
|
|
|
Recommends: perl(GD::Text)
|
2010-09-14 13:04:03 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
GCstar is a free open source application for managing collections of
|
|
|
|
movies, books, music, etc. Detailed information on each item can be
|
|
|
|
automatically retrieved from the internet and you can store additional
|
|
|
|
data, such as the location or who you've lent it to. You may also
|
|
|
|
search and filter your collection by many criteria.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
./install --prefix=%{buildroot}%{_prefix}/
|
|
|
|
for icon in share/gcstar/icons/gcstar_*.png; do
|
|
|
|
size=`echo $icon | sed 's,.*gcstar_,,;s,\.png,,'`
|
|
|
|
# Only install sizes that exist in hicolor
|
|
|
|
if test -d %{_datadir}/icons/hicolor/$size/apps; then
|
|
|
|
install -D -m644 $icon %{buildroot}%{_datadir}/icons/hicolor/$size/apps/gcstar.png
|
|
|
|
fi
|
|
|
|
if test -d %{_datadir}/icons/hicolor/$size/mimetypes; then
|
|
|
|
install -D -m644 $icon %{buildroot}%{_datadir}/icons/hicolor/$size/mimetypes/application-x-gcstar.png
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
install -D -m644 share/gcstar/icons/gcstar_scalable.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/gcstar.svg
|
|
|
|
install -D -m644 share/gcstar/icons/gcstar_scalable.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/mimetypes/application-x-gcstar.svg
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man1/
|
|
|
|
mv %{buildroot}%{_prefix}/man/man1/gcstar.1.gz %{buildroot}%{_mandir}/man1/
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/mime/packages
|
|
|
|
install -m 644 share/applications/gcstar.xml %{buildroot}%{_datadir}/mime/packages
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/applications
|
|
|
|
%suse_update_desktop_file -i gcstar Database
|
|
|
|
%fdupes %{buildroot}%{_datadir}
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%post
|
2011-02-14 00:43:37 +00:00
|
|
|
%if 0%{?suse_version} > 1130
|
|
|
|
%desktop_database_post
|
2010-09-14 13:04:03 +00:00
|
|
|
%icon_theme_cache_post
|
2011-02-14 00:43:37 +00:00
|
|
|
%mime_database_post
|
|
|
|
%else
|
|
|
|
update-mime-database %{_datadir}/mime || true
|
2010-09-14 13:04:03 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%postun
|
2011-02-14 00:43:37 +00:00
|
|
|
%if 0%{?suse_version} > 1130
|
|
|
|
%desktop_database_postun
|
2010-09-14 13:04:03 +00:00
|
|
|
%icon_theme_cache_postun
|
2011-02-14 00:43:37 +00:00
|
|
|
%mime_database_postun
|
|
|
|
%else
|
|
|
|
update-mime-database %{_datadir}/mime || true
|
2010-09-14 13:04:03 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/gcstar
|
|
|
|
%{_libexecdir}/gcstar/
|
|
|
|
%{_datadir}/applications/gcstar.desktop
|
|
|
|
%{_datadir}/gcstar/
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/gcstar.*
|
|
|
|
%{_datadir}/icons/hicolor/*/mimetypes/application-x-gcstar.*
|
|
|
|
%{_datadir}/mime/packages/gcstar.xml
|
|
|
|
%{_mandir}/man1/gcstar.1.*
|
|
|
|
|
|
|
|
%changelog
|