packages: gitg/gitg.spec (NEW) - init

wiget wiget at pld-linux.org
Sun Jan 16 16:21:28 CET 2011


Author: wiget                        Date: Sun Jan 16 15:21:28 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- init

---- Files affected:
packages/gitg:
   gitg.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/gitg/gitg.spec
diff -u /dev/null packages/gitg/gitg.spec:1.1
--- /dev/null	Sun Jan 16 16:21:28 2011
+++ packages/gitg/gitg.spec	Sun Jan 16 16:21:23 2011
@@ -0,0 +1,142 @@
+# $Revision$, $Date$
+%bcond_with	gtk3 # build gtk3 version
+#
+Summary:	Gtk+ git repository viewer
+Name:		gitg
+Version:	0.1.0
+Release:	0.1
+License:	GPL v2
+Group:		Development/Tools
+Source0:	http://ftp.gnome.org/pub/GNOME/sources/gitg/0.1/%{name}-%{version}.tar.bz2
+# Source0-md5:	052fbb7ad4c62c546e8f3206510ebb0f
+URL:		http://trac.novowork.com/gitg/
+BuildRequires:	GConf2-devel >= 2.24.0
+BuildRequires:	autoconf >= 2.59
+BuildRequires:	automake >= 1:1.8
+BuildRequires:	gettext-devel >= 0.17
+BuildRequires:	glib2-devel >= 1:2.26.0
+BuildRequires:	gsettings-desktop-schemas
+BuildRequires:	intltool >= 0.40.0
+BuildRequires:	libtool
+BuildRequires:	pkgconfig
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(find_lang) >= 1.23
+BuildRequires:	rpmbuild(macros) >= 1.596
+%if %{with gtk3}
+BuildRequires:	gtk+3-devel >= 2.91.7
+BuildRequires:	gtksourceview3-devel >= 2.90.0
+%else
+BuildRequires:	gtk+2-devel >= 2:2.21.0
+BuildRequires:	gtksourceview2-devel >= 2.8.0
+%endif
+Requires(post,postun):	desktop-file-utils
+Requires(post,postun):	gtk-update-icon-cache
+Requires(post,preun):	GConf2
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%if %{with gtk3}
+%define gtk_ver 3.0
+%else
+%define gtk_ver 2.0
+%endif
+
+%description
+gitg is a git repository viewer targeting gtk+/GNOME. One of its main
+objectives is to provide a more unified user experience for git
+frontends across multiple desktops.
+
+%package devel
+Summary:	libgitg header files
+Summary(pl.UTF-8):	Pliki nagłówkowe libgitg
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+libgitg header files.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe libgitg.
+
+%package static
+Summary:	libgitg static libraries
+Summary(pl.UTF-8):	Biblioteki statyczne libgitg
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+libgitg static libraries.
+
+%description static -l pl.UTF-8
+Biblioteki statyczne libgitg
+
+%prep
+%setup -q
+
+%build
+%{__libtoolize}
+%{__intltoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+	--with-gtk=%{gtk_ver} \
+	--disable-silent-rules
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libgitg-1.0.la
+
+%find_lang gitg
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+/sbin/ldconfig
+%glib_compile_schemas
+%update_icon_cache hicolor
+
+%postun
+if [ "$1" = "0" ]; then
+	/sbin/ldconfig
+	%glib_compile_schemas
+	%update_icon_cache hicolor
+fi
+
+%files -f gitg.lang
+%defattr(644,root,root,755)
+%doc README ChangeLog AUTHORS NEWS
+%attr(755,root,root) %{_bindir}/gitg
+%attr(755,root,root) %ghost %{_libdir}/libgitg-1.0.so.0
+%attr(755,root,root) %{_libdir}/libgitg-1.0.so.*.*.*
+%{_datadir}/gitg
+%{_datadir}/glib-2.0/schemas/org.gnome.gitg.gschema.xml
+%{_desktopdir}/gitg.desktop
+%{_mandir}/man1/gitg.1*
+%{_iconsdir}/hicolor/*/apps/gitg.*
+
+%files devel
+%defattr(644,root,root,755)
+%{_libdir}/libgitg-1.0.so
+%{_includedir}/libgitg-1.0
+%{_pkgconfigdir}/libgitg-1.0.pc
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libgitg-1.0.a
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2011/01/16 15:21:23  wiget
+- init
+
================================================================


More information about the pld-cvs-commit mailing list