On 2006-05-04 16:24:51 +0200, Johannes Nohl wrote:
> is it possible to turn a "make install" from filesystem to rpm? I want
> to have a individual rpm for my system so after "./configure & make &
> make installrpm" I just have to install the rpm. It would be easier to
> test something.

checkinstall

but writing spec files is not rocket sience.
see http://en.opensuse.org/SUSE_Build_Tutorial

and i attached a nice sample spec file.
it isnt the minimal case but it shows subpackages aswell.

hope this helps

    darix

-- 
          openSUSE - SUSE Linux is my linux
              openSUSE is good for you
                  www.opensuse.org
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# norootforbuild

Name:           liboggz
Version:        0.9.4
Release:        1
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
License:        BSD
Group:          System/Libraries
Url:            http://www.annodex.net/software/liboggz/
Source:         
http://www.annodex.net/software/liboggz/download/liboggz-%{version}.tar.gz
Summary:        Library for simple parsing and seeking of files and streams 
based on the Ogg file format

%description
liboggz is a library that provides simple parsing and seeking of files
and streams based on the Ogg file format. liboggz requires libogg to
work.

liboggz knows about Ogg speex, Ogg vorbis, Ogg theora, and the Ogg
based Annodex formats, thus allows parsing (though not decoding) of
these files. For getting decoding and encoding functionality you will
require in addition libspeex, libvorbis, libtheora, and libannodex
respectively.

Authors:
--------
 - Conrad Parker <[EMAIL PROTECTED]>
 - Silvia Pfeiffer <[EMAIL PROTECTED]>
 - Andre Pang <[EMAIL PROTECTED]>
 - Zentaro Kavanagh <[EMAIL PROTECTED]>
 - David Kuehling <[EMAIL PROTECTED]>

%package devel
Group:          System/Libraries
Requires:       %{name} = %{version}
Requires:       libogg-devel
Summary:        Development files for liboggz

%description devel
Development files for liboggz.

%package -n oggztools
Group:          Productivity/Multimedia/Other
Summary:        commandline tools to analyze ogg files

%description -n oggztools
oggztools contains commandline tools to analyze ogg files.
oggztools know about Ogg speex, Ogg vorbis, Ogg theora, and the Ogg
based Annodex formats, thus allows parsing (though not decoding) of
these files. For getting decoding and encoding functionality you will
require in addition libspeex, libvorbis, libtheora, and libannodex
respectively.

Authors:
--------
 - Conrad Parker <[EMAIL PROTECTED]>
 - Silvia Pfeiffer <[EMAIL PROTECTED]>
 - Andre Pang <[EMAIL PROTECTED]>
 - Zentaro Kavanagh <[EMAIL PROTECTED]>
 - David Kuehling <[EMAIL PROTECTED]>

%prep
%setup

%build
%configure
%{__make}

%install
%makeinstall docdir=%{_docdir}/%{name}
%{__rm} -rf %{buildroot}%{_docdir}/%{name}/latex/
%{__install} -m 0644 \
        ChangeLog README AUTHORS \
    %{buildroot}%{_docdir}/%{name}
# missing manpages
%{__install} -Dd -m 0755     %{buildroot}%{_mandir}/man1/
%{__install} -m 0644 doc/*.1 %{buildroot}%{_mandir}/man1/

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-,root,root,-)
%{_libdir}/liboggz.so.1
%{_libdir}/liboggz.so.1.2.0
%dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/ChangeLog
%doc %{_docdir}/%{name}/README
%doc %{_docdir}/%{name}/AUTHORS

%files devel
%defattr(-,root,root,-)
%{_includedir}/oggz/
%{_libdir}/liboggz.a
%{_libdir}/liboggz.la
%{_libdir}/liboggz.so
%{_libdir}/pkgconfig/oggz.pc
%doc %{_docdir}/%{name}/html

%files -n oggztools
%defattr(-,root,root,-)
%{_bindir}/oggz-scan
%{_bindir}/oggz-validate
%{_bindir}/oggzdiff
%{_bindir}/oggzdump
%{_bindir}/oggzinfo
%{_bindir}/oggzmerge
%{_bindir}/oggzrip
%{_mandir}/man1/*

%changelog -n liboggz
* Thu Mar 02 2006 - [EMAIL PROTECTED]
- initial package of 0.9.4

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to