File giggle.spec of Package giggle

# This is a template, before making any further amendments, do the following
# search & replace actions:
#
# PACKAGE  => package-name
# VERSION  => package version
# YOURNAME => Your name
# FEEDBACK => Your email address
#
# Then, fill in the BuildRequires line as appropriate, some basic packages are
# listed for you, add packages that the configure script fails to find.
#
# Don't forget that every package installs different files, so you need to
# populate the %files section appropriately.
#
# An example %doc line is provided but you may need to tweak it.
#
# provided, you will likely need to add more.
# After that, you may remove this line and all above it.
#
# spec file for package PACKAGE (version VERSION)
#
# Copyright (c) 2007 YOURNAME
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# please send bugfixes or comments to FEEDBACK
#

# norootforbuild

BuildRequires: gtk2-devel libglade2-devel perl-XML-Parser update-desktop-files
BuildRequires: git >= 1.5
Name:         giggle
%if %suse_version <= 1020
%define _prefix   /opt/gnome
%define _sysconfdir /etc%prefix
BuildRequires: extra-rpm-macros
BuildRequires: gtksourceview-devel
%endif

%if %suse_version > 1020
BuildRequires: gtksourceview18-devel
%endif
Summary:      A Git frontend
Version:      0.3
Release:      1
License:      GPL
Group:        Tools/Tacos/Nachos
Source:       %{name}-%{version}.tar.gz
### URL:          http://
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
Autoreqprov:  on
Requires:     %{name}-lang = %{version}
Requires:     git >= 1.5

%description
Insert description here - normally taken from the README.

%lang_package
%debug_package
%prep
%setup -n %{name}-%{version}

%build
%configure
 
CCFLAGS=$RPM_OPT_FLAGS make

%install
%makeinstall
%find_lang %{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc AUTHORS COPYING INSTALL NEWS README
%{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/icons/hicolor/*/*/giggle.png
%{_datadir}/icons/hicolor/*/*/giggle.svg
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/glade
%{_datadir}/%{name}/glade/*.glade

%files lang -f %{name}.lang

%changelog -n %{name}
openSUSE Build Service is sponsored by