- Now RPMs are created okay from the spec file

git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1160 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
tchernobog 2006-09-14 20:52:35 +00:00
parent 503634d7c5
commit 916743ed10
3 changed files with 27 additions and 5 deletions

View File

@ -79,7 +79,7 @@ macros = \
distro_files = \ distro_files = \
distro/deb/control-v0.9b \ distro/deb/control-v0.9b \
distro/ebuild/sgpemv2-0.9b.ebuild \ distro/ebuild/sgpemv2-0.9b.ebuild \
distro/rpm/sgpemv2-0.9b.spec distro/rpm/SPECS/sgpemv2-0.9b.spec
EXTRA_DIST += \ EXTRA_DIST += \
config/config.rpath \ config/config.rpath \

View File

@ -37,8 +37,7 @@ URL: http://www.smoking-gnu.net/xhtml/projects.php?sgpemv2
Packager: Paolo Santi <psanti@studenti.math.unipd.it> Packager: Paolo Santi <psanti@studenti.math.unipd.it>
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define _sourcedir %(curdir="`pwd`"; echo "$curdir") %define _topdir %(curdir="`pwd`"; echo "$curdir")
%define _builddir %(curdir="`pwd`"; echo "$curdir")
%description %description
SGPEM is an Italian acronym, standing for "Simulatore della Gestione SGPEM is an Italian acronym, standing for "Simulatore della Gestione
@ -83,12 +82,23 @@ make
make pdf make pdf
%install %install
cd ${RPM_BUILD_DIR}/${RPM_PACKAGE_NAME}-${RPM_PACKAGE_VERSION}/build # create docdir:
documents="$RPM_BUILD_ROOT%{_docdir}/%{name}"
mkdir -p "${documents}"
# install standard documentation:
cd ${RPM_BUILD_DIR}/${RPM_PACKAGE_NAME}-${RPM_PACKAGE_VERSION}
cp AUTHORS COPYING NEWS ChangeLog "${documents}"
# install everything else
cd build
make DESTDIR="${RPM_BUILD_ROOT}/${_prefix}" install-strip make DESTDIR="${RPM_BUILD_ROOT}/${_prefix}" install-strip
# install also pdf manuals
cp doc/sgpem2uman.pdf doc/sgpem2dman.pdf "${documents}"
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc README AUTHORS ChangeLog NEWS doc/sgpem2uman.pdf doc/sgpem2dman.pdf
# This works correctly because we're using a build root: # This works correctly because we're using a build root:
/ /

12
distro/rpm/readme.txt Normal file
View File

@ -0,0 +1,12 @@
Building RPMs
-----------------
Launch the build process like:
rpmbuild -bb SPECS/sgpemv2-$(version).spec
where $(version) is the version you want to build
a spec for. You'll need to put the source tbz2 into SOURCES.
**** TODO: ****
- Explicitly list runtime dependencies