diff --git a/.cvsignore b/.cvsignore deleted file mode 100644 index e69de29..0000000 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1739fc4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +shutter-0.86.2.tar.gz diff --git a/Makefile b/Makefile deleted file mode 100644 index f3d2796..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: shutter -# $Id$ -NAME := shutter -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/shutter.spec b/shutter.spec new file mode 100644 index 0000000..1fc50e0 --- /dev/null +++ b/shutter.spec @@ -0,0 +1,137 @@ +#%define ppa_version ppa6 +Name: shutter +Version: 0.86.2 +Release: 1%{?dist} +Summary: GTK+ 2.0 screenshot application written in perl +Group: Applications/Multimedia +License: GPL+ or Artistic +URL: http://shutter-project.org +Source0: http://shutter-project.org/wp-content/uploads/releases/tars/%{name}-%{version}.tar.gz +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: desktop-file-utils +Requires: gnome-web-photo +Requires: perl(Gtk2::ImageView) +Requires: perl(X11::Protocol) +Requires: nautilus-sendto +Requires: hicolor-icon-theme + +%description +Shutter is a GTK+ 2.0 screenshot application written in perl. +Shutter covers all features of common command line tools like +scrot or import and adds reasonable new features combined +with a comfortable GUI using the GTK+ 2.0 framework + + +%prep +%setup -q -n %{name}-%{version} +rm -rf share/app-install/ +rm -rf share/shutter/resources/po/ +rm -rf share/shutter/resources/modules/{File,Net,Proc,Sort,X11} +rm -rf share/doc + +%build + +%install +rm -rf $RPM_BUILD_ROOT +# executable and data +install -d -m 0755 -p $RPM_BUILD_ROOT%{_bindir} +install -d -m 0755 -p $RPM_BUILD_ROOT%{_datadir} +cp -pfr bin/* $RPM_BUILD_ROOT%{_bindir}/ +cp -pfr share/* $RPM_BUILD_ROOT%{_datadir}/ + +desktop-file-install --delete-original \ + --dir ${RPM_BUILD_ROOT}/%{_datadir}/applications \ + ${RPM_BUILD_ROOT}/%{_datadir}/applications/%{name}.desktop + +%find_lang %{name} +%find_lang %{name}-plugins +cat %{name}-plugins.lang >> %{name}.lang + +%post +update-desktop-database %{_datadir}/applications &>/dev/null || : + + +%postun +update-desktop-database %{_datadir}/applications &>/dev/null || : + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files -f %{name}.lang +%defattr(-,root,root,-) +%doc README COPYING +%{_bindir}/%{name} +%{_datadir}/applications/%{name}.desktop +%{_datadir}/%{name} +%{_mandir}/man1/%{name}* +%{_datadir}/pixmaps/%{name}.png +%{_datadir}/icons/hicolor/*/apps/%{name}.* + +%changelog +* Thu May 05 2010 Liang Suilong - 0.86.2-1 +- Upgrade to shutter-0.86.2 +- Add BR: hicolor-icon-theme + +* Mon Apr 19 2010 Liang Suilong - 0.86.1-1 +- Upgrade to shutter-0.86.1 + +* Mon Mar 2 2010 Liang Suilong - 0.85.1-2 +- Remove BR:gtklp +- fix the bug of directory ownership + +* Mon Dec 7 2009 Liang Suilong - 0.85.1-1 +- Upgrade to shutter-0.85.1 + +* Sat Nov 21 2009 Liang Suilong - 0.85-1 +- Upgrade to shutter-0.85 + +* Mon Aug 3 2009 Liang Suilong - 0.80.1-1 +- Updrade to shutter-0.80.1 + +* Mon Aug 3 2009 Liang Suilong - 0.80-5 +- Update %%install script + +* Wed Jul 29 2009 Liang Suilong - 0.80-4 +- Update %%install script + +* Mon Jul 20 2009 Liang Suilong - 0.80-3 +- Add perl(X11::Protocol) as require + +* Thu Jun 25 2009 Liang Suilong - 0.80-2 +- Upstream to shutter-0.80 Final GA + +* Thu Jun 25 2009 Liang Suilong - 0.80-1.ppa6 +- Upstream to shutter-0.80~ppa6 +- Update the SPEC file + +* Thu Jun 25 2009 Liang Suilong - 0.70.2-3.ppa4 +- Remove share/shutter/resources/pofiles/ +- Remove share/shutter/resources/modules/File +- Remove share/shutter/resources/pofiles/Proc + +* Wed Apr 15 2009 Liang Suilong - 0.70.2-2.ppa4 +- Add a desktop-file-utils as BuildRequires + +* Wed Apr 15 2009 Liang Suilong - 0.70.2-2.ppa3 +- Add a desktop-file-utils as BuildRequires + +* Sun Jan 18 2009 Liang Suilong - 0.70.2-1 +- Upstream to 0.70.2 + +* Sun Jan 18 2009 Liang Suilong - 0.70.1-1 +- Upstream to 0.70.1 + +* Sun Jan 18 2009 Liang Suilong - 0.70-1 +- Upstream to 0.70 + +* Sun Jan 18 2009 Liang Suilong - 0.64-2 +- Add several Requires so that advanced functions can run. +- Fix the authoritie of install path. + +* Fri Jan 02 2009 bbbush - 0.64-1 +- update to 0.64, clean up spec + +* Mon Dec 29 2008 Liang Suilong - 0.63-3 +- Initial package for Fedora diff --git a/sources b/sources index e69de29..a44cb54 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +7261c53d5e36b0c7c32aaba2a3714384 shutter-0.86.2.tar.gz