I am looking for an excelently written sample spec file for opensuse
with the following characteristics:
1) uses gtkmm and gnomemm.
2) has a .desktop file.
3) uses auto* tools.
4) otherwise fairly simple
Also I would like to understand %gconf_schemas_prereq
What does this macro do? Where is it documented?
Thank You.
--
Paul Elliott 1(512)837-1096
pelliott(a)io.com PMB 181, 11900 Metric Blvd Suite J
http://www.io.com/~pelliott/pme/ Austin TX 78758-3117
Whoever is maintainer of VirtualBox in:
http://download.opensuse.org/repositories/
Virtualization:/VirtualBox/openSUSE_10.2/i586/
VirtualBox-kmp-default-1.4.0_2.6.18.2_34-20.1.i586.rpm
and
http://download.opensuse.org/repositories/
Virtualization:/VirtualBox/openSUSE_10.2_Update/i586/
VirtualBox-kmp-default-1.4.0_2.6.18.8_0.3-20.1.i586.rpm
the packages missing vboxdrv, which makes VirtualBox useless on openSUSE 10.2.
--
Regards,
Rajko.
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-packaging+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-packaging+help(a)opensuse.org
Please find flaws and mistakes in the peless spec file for opensuse below:
peless is ready to be translated, but currently has 0 translations. The
build procedure creates a desktop file.
How can I get peless into OpenSuSE?
-------------------cut here with a chainsaw--------------------
# norootforbuild
%define _prefix /opt/gnome
Name: peless
Summary: Tabbed text browser
Version: 1.156
Release: 19%{?dist}
License: GPL
Group: Productivity/Text/Utilities
Source0: http://download.berlios.de/peless/%{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Packager: https://developer.berlios.de/projects/peless/
URL: https://developer.berlios.de/projects/peless/
Autoreqprov: on
%{?suse_update_config:BuildRequires:autoconf automake libtool}
BuildRequires: gtkmm24-devel, gconfmm-devel, boost-devel = 1.33.1, libsigc++2-devel, gettext, intltool, gcc-c++
%description
Peless is a simple text file lister. It only displays files and
never modifies them. It can display multiple files using a tabbed notebook,
display international characters, and search the files for regular expressions
or literal expressions. Users can choose the fonts used to display files.
%prep
%setup -q
%{?suse_update_libdir:%{suse_update_libdir}}
%{?suse_update_config:%{suse_update_config -f}}
%build
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" \
PKG_CONFIG_PATH=%{_prefix}/%{_lib}/pkgconfig:%{_prefix}/share/pkgconfig \
%configure --prefix=%{_prefix} --with-boost=/usr \
--with-dtcat=%{?DTCAT:%{DTCAT}}%{!?DTCAT:'Application;Utility;'}
CCFLAGS=$RPM_OPT_FLAGS \
PKG_CONFIG_PATH=%{_prefix}/%{_lib}/pkgconfig:%{_prefix}/share/pkgconfig \
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install-strip
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README INTERNATIONALIZATION
%{_bindir}/peless
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/pixmaps/%{name}.xpm
%_mandir/man1/peless.1.*
%changelog
* Fri Aug 31 2007 Paul Elliott <pelliott(a)io.com> - 1.156-17
- add intltool, gcc-c++
* Wed Aug 29 2007 Paul Elliott <pelliott(a)io.com> - 1.156-5
- new Summary.
* Sat Aug 25 2007 Paul Elliott <pelliott(a)io.com> - 1.156-3
- reorder changelog
- replace /lib/ by /%{_lib}/
- must use %suse_update_config -f and %suse_update_libdir before configure with
- every package - note that it might break the build of some packages,
- so it must be tested (only remove it if it breaks), like this:
- use # norootforbuild
- group changes from Applications/Text to Productivity/Text/Utilities
- change buildroot to opensuse preference.
- add Autoreqprov: on
* Wed Aug 1 2007 Paul Elliott <pelliott(a)io.com> - 1.156-3
- remove philo.txt from files distributed to end users.
- And use https://developer.berlios.de/projects/peless/ as URL.
* Tue Jul 24 2007 Paul Elliott <pelliott(a)io.com>
- modify spec files on advise of fedora people.
* Sun May 27 2007 Paul Elliott <pelliott(a)io.com>
- update to satisfy fedora rules.
* Sun Jan 22 2005 D. Scott Barninger <barninger(a)fairfieldcomputers.com>
- modify for gwdg.de repository
--
Paul Elliott 1(512)837-1096
pelliott(a)io.com PMB 181, 11900 Metric Blvd Suite J
http://www.io.com/~pelliott/pme/ Austin TX 78758-3117
I have ported my Fedora packaging of Vala for openSUSE, and in order
to be able to use both the openSUSE Build Service and Fedora's koji
from my openSUSE machine, have also ported Fedora's python-krbV (as
well as koji itself).
Vala, which is a compiler for a C#-style language that compiles down
to GObject C code (or optionally straight to native code), might be of
interest; with permission I'd like to add it to GNOME:Community.
Is anyone interested in making use of python-krbV? There's a Python
repository in the OBS, what are the criteria for adding packages
there?
Thanks,
--
Michel
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-packaging+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-packaging+help(a)opensuse.org
Hi!
We did some analysis on how much space is wasted by packages storing the same
file twice (or more). While few packages waste megabytes (only 88 waste more
than 1000Mib), 657 waste more than 20K - which sums up to 703MiB in total.
Impressed? Consider using fdupes in your package.
It's pretty simple: BuildRequire fdupes and then use "%fdupes $RPM_BUILD_ROOT"
in your install section. This will check for duplicated files and make them
hardlink. Just be careful that these duplicated files do not end up in
different subpackages - I haven't tried what rpm does in that case.
But you can also use %fdupes -s, which will create symlinks, which are easier
to grasp for rpm :)
So you can also combine this like this
# create symlinks for my man pages
%fdupes -s $RPM_BUILD_ROOT%_mandir
# create hardline for the rest
%fdupes $RPM_BUILD_ROOT
I also added an rpmlint check that will give an error for the package if it's
wasting more than 20KB (which is basically a random number).
Greetings, Stephan
--
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-packaging+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-packaging+help(a)opensuse.org