Sophie

Sophie

distrib > Mandriva > 2007.1 > i586 > by-pkgid > ef220408f7a08517f65ea17e3f01b7ab > files > 3

glabels-2.1.3-5.1mdv2007.1.src.rpm

%define name glabels
%define version 2.1.3
%define release %mkrel 5
%define subrel 1

%define major 2
%define libname %mklibname %{name} %major
%define libnamedev %mklibname %{name} %major -d


Summary:	Glabels is a GNOME program to create labels and business cards
Name:		%name
Version:	%version
Release:	%release
License:	GPL
Group:		Office

Source:		http://easynews.dl.sourceforge.net/sourceforge/glabels/%name-%version.tar.bz2
# From Ubuntu: fix crash when switching paper size (#38732)
Patch0:		glabels-2.1.3-fix_paper_size_switch_crash.patch

URL:		http://snaught.com/glabels/
Buildrequires:  libgnomeprintui-devel
BuildRequires:  evolution-data-server-devel
BuildRequires:  libglade2.0-devel
BuildRequires:  libgnomeui2-devel
BuildRequires:  perl-XML-Parser
BuildRequires:  scrollkeeper
BuildRequires:  desktop-file-utils
Requires(post): scrollkeeper
Requires(postun): scrollkeeper

BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
Glabels is stand-alone program for creating labels and business cards
for GNOME.

%package -n %libname
Summary: Glabels is a GNOME program to create labels and business cards
Group: System/Libraries

%description -n %libname
Glabels is stand-alone program for creating labels and business cards
for GNOME. Libraries.

%package -n %libnamedev
Summary: Glabels devel files
Group: Development/Other
Requires: %libname = %version
Provides: libglabels-devel

%description -n %libnamedev
Glabels is stand-alone program for creating labels and business cards
for GNOME. Devel files.


%prep

%setup -q
%patch0 -p1 -b .papersize

%build

%configure2_5x
%make

%install
rm -fr %buildroot %name.lang

%makeinstall UPDATE_MIME_DATABASE=true UPDATE_DESKTOP_DATABASE=true

rm -rf $RPM_BUILD_ROOT/var

mkdir -p $RPM_BUILD_ROOT/%_menudir
cat > $RPM_BUILD_ROOT%_menudir/%{name} <<EOF
?package(%{name}):\
command="%_bindir/glabels"\
title="Glabels"\
longtitle="Create labels and business cards"\
needs="x11"\
section="Office/Accessories" \
icon="office_accessories_section.png" \
xdg="true"
EOF

desktop-file-install --vendor="" \
  --remove-category="Application" \
  --add-category="X-MandrivaLinux-Office-Accessories" \
  --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/*

%find_lang %name --with-gnome

%post
%update_menus
%update_mime_database
%update_scrollkeeper

%postun
%clean_menus
%clean_mime_database
%clean_scrollkeeper

%post -n %libname -p /sbin/ldconfig

%postun -n %libname -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %name.lang
%defattr(-, root, root)
%doc README AUTHORS
%_bindir/*
%_datadir/%name
%_datadir/application-registry/*
%_datadir/applications/*
%_datadir/mime-info/*
%_datadir/mime/packages/*
%dir %_datadir/omf/%name
%_datadir/omf/%name/%name-C.omf
%_datadir/pixmaps/*
%_datadir/man/man1/*
%_menudir/*
%_datadir/gtk-doc/html/libglabels/*

%files -n %libname
%defattr(-, root, root)
%_libdir/*.so.%{major}*

%files -n %libnamedev
%defattr(-, root, root)
%_libdir/*.so
%_libdir/*.*a
%dir %_includedir/libglabels
%_includedir/libglabels/*
%_libdir/pkgconfig/libglabels.pc




%changelog
* Fri Mar 21 2008 Adam Williamson <awilliamson@mandriva.com> 2.1.3-5.1mdv2007.1
+ Revision: 189343
- add fix_paper_size_switch_crash.patch (from Ubuntu) to fix crash when switching paper size

  + Andreas Hasenack <andreas@mandriva.com>
    - branched cooker into 2007.1 (will have to revert some recent changes)


* Fri Dec 29 2006 Frederic Crozat <fcrozat@mandriva.com> 2.1.3-5mdv2007.0
+ Revision: 102561
- Rebuild with latest eds

* Thu Nov 30 2006 Götz Waschk <waschk@mandriva.org> 2.1.3-4mdv2007.1
+ Revision: 88942
- fix buildrequires
- fix buildrequires
- handle scrollkeeper
- spec fixes
- Import glabels

* Thu Nov 30 2006 Götz Waschk <waschk@mandriva.org> 2.1.3-3mdv2007.1
- fix buildrequires

* Fri Aug 04 2006 Frederic Crozat <fcrozat@mandriva.com> 2.1.3-2mdv2007.0
- xdg menu
- rebuild with latest dbus

* Wed May 31 2006 Lenny Cartier <lenny@mandriva.com> 2.1.3-1mdv2007.0
- 2.1.3

* Thu May 11 2006 Frederic Crozat <fcrozat@mandriva.com> 2.1.2-3mdk
- Fix buildrequires

* Tue Apr 25 2006 Frederic Crozat <fcrozat@mandriva.com> 2.1.2-2mdk
- Rebuild with latest e-d-s

* Thu Apr 06 2006 Nicolas Lécureuil <neoclust@mandriva.org> 2.1.2-1mdk
- New release 2.1.2

* Mon Dec 26 2005 Lenny Cartier <lenny@mandriva.com> 2.0.4-1mdk
- 2.0.4

* Fri Oct 28 2005 Nicolas Lécureuil <neoclust@mandriva.org> 2.0.3-3mdk
- Fix BuildRequires

* Fri Oct 28 2005 Lenny Cartier <lenny@mandriva.com> 2.0.3-2mdk
- rebuild for dependencies

* Fri Jul 22 2005 Nicolas Lécureuil <neoclust@mandriva.org> 2.0.3-1mdk
- New release 2.0.3

* Mon Jan 24 2005 Lenny Cartier <lenny@mandrakesoft.com> 2.0.2-1mdk
- 2.0.2

* Thu Jan 06 2005 Frederic Crozat <fcrozat@mandrakesoft.com> 2.0.1-6mdk 
- Rebuild with latest howl

* Fri Nov 12 2004 Götz Waschk <waschk@linux-mandrake.com> 2.0.1-5mdk
- fix installation
- spec fixes
- fix buildrequires

* Fri Nov 12 2004 Götz Waschk <waschk@linux-mandrake.com> 2.0.1-4mdk
- spec fixes
- remove generated files from /usr/share/mime/

* Mon Aug 30 2004 Jerome Soyer <saispo@mandrake.org> 2.0.1-3mdk
- Another BuildRequires

* Wed Aug 18 2004 Jerome Soyer <saispo@mandrake.org> 2.0.1-2mdk
- Fix BuildRequires

* Tue Aug 17 2004 Jerome Soyer <saispo@mandrake.org> 2.0.1-1mdk
- 2.0.1

* Thu Aug 12 2004 Jerome Soyer <saispo@mandrake.org> 2.0.0-1mdk
- 2.0.0

* Thu Jun 03 2004 Lenny Cartier <lenny@mandrakesoft.com> 1.93.3-1mdk
- 1.93.3