Re: Need example spec file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Jan 28, 2012 at 10:46 AM, Steve Berg <sberg@xxxxxxxxxxxxxxx> wrote:
> I'm trying to get my head wrapped around building rpms.  Can someone send me
> a spec file or link to one that would demonstrate how to structure the spec
> file for starting with a tar ball of files that need to be copied onto a
> system to something like /opt/<dir>.

Years ago, I wanted to package up jpg images for background wallpaper.
 The attached spec file gives you the idea for that. Basically, just
copy the files to the places they ought to be, the same idea that rpm
uses internally when you have README or DOC files in your package.



-- 
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas
Summary: Wide Desktop backgrounds.
Name: wide-backgrounds
Version: 1.1
Release: 1
License: LGPL
Group: Applications/Multimedia
Source4: default-background.png
Source0: doublewide-backgrounds.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildArchitectures: noarch

%description

Wide images for dual head displays. 

#package extra

#Summary: Desktop background images.
#Group: Applications/Multimedia

#description extra
#The desktop-backgrounds-extra package contains a larger set of images
#to use for your desktop background. It builds on
#desktop-backgrounds-basic.

%prep
%setup -n backgrounds 

# move things where %doc can find them

tar xjvf %{SOURCE0} 

cp -f %{SOURCE4} backgrounds/wideimages/default.png

%install
rm -rf $RPM_BUILD_ROOT

mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/backgrounds
cd $RPM_BUILD_ROOT%{_prefix}/share/backgrounds

cp -a $RPM_BUILD_DIR/backgrounds/wideimages .


#bgdir=$RPM_BUILD_ROOT%{_prefix}/share/backgrounds
#for I in tiles/Propaganda images/dewdop_leaf.jpg images/dragonfly.jpg images/frosty_pipes.jpg images/in_flight.jpg images/leaf_veins.jpg \
#	images/leafdrops.jpg images/lightrays-transparent.png images/lightrays.png images/lightrays2.png images/raingutter.jpg images/riverstreet_rail.jpg \
#	images/sneaking_branch.jpg images/space images/yellow_flower.jpg; do
#	rm -rf ${bgdir}/${I}
#done

%clean
rm -rf $RPM_BUILD_ROOT

# basic contains some reasonable sane basic tiles
%files 
%defattr(-, root, root)
%dir %{_datadir}/backgrounds
%{_datadir}/backgrounds/wideimages/*


%changelog
* Wed Apr 27 2005 John (J5) Palmieri <johnp@xxxxxxxxxx> 2.0-29
- Add translations
- redhat-backgrounds-9

* Tue Feb 22 2005 Elliot Lee <sopwith@xxxxxxxxxx> 2.0-28
- Remove extra backgrounds for now to save space.

* Wed Feb  2 2005 Matthias Clasen <mclasen@xxxxxxxxxx> - 2.0-27
- Move .xml files to where the background capplet in
  Gnome 2.10 will find them

* Mon Oct 18 2004 Alexander Larsson <alexl@xxxxxxxxxx> - 2.0-26.2.1E
- RHEL build

* Mon Oct 18 2004 Alexander Larsson <alexl@xxxxxxxxxx> - 2.0-26.2
- New background

* Thu Sep 30 2004 Alexander Larsson <alexl@xxxxxxxxxx> - 2.0-26.1E
- RHEL build

* Thu Sep 30 2004 Alexander Larsson <alexl@xxxxxxxxxx> - 2.0-26
- New default background infrastructure.

* Mon Sep 27 2004 Matthias Clasen <mclasen@@redhat.com> 2.0.25
- avoid duplicate images

* Mon Sep 27 2004 Matthias Clasen <mclasen@@redhat.com> 2.0.24
- Prepopulate the list of backgrounds in the background
  changes with a small set of good backgrounds (#133382)
- redhat-backgrounds-7

* Thu Sep 09 2004 Elliot Lee <sopwith@xxxxxxxxxx> 2.0-23
- Really update the default background.

* Wed Jul 07 2004 Elliot Lee <sopwith@xxxxxxxxxx> 2.0-21
- Change background for FC3test1

* Thu May  6 2004 Jeremy Katz <katzj@xxxxxxxxxx> - 2.0-20
- background from Garrett for FC2

* Fri Feb 13 2004 Elliot Lee <sopwith@xxxxxxxxxx>
- rebuilt

* Sun Nov  2 2003 Elliot Lee <sopwith@xxxxxxxxxx> 2.0-18
- redhat-backgrounds-6

* Wed Oct 29 2003 Havoc Pennington <hp@xxxxxxxxxx> 2.0-17
- redhat-backgrounds-5

* Tue Sep 23 2003 Michael Fulbright <msf@xxxxxxxxxx> 2.0-16
- new fedora background 
- (this change was never committed to cvs -hp)

* Thu Jul 17 2003 Havoc Pennington <hp@xxxxxxxxxx> 2.0-15
- background for the beta

* Fri Feb 21 2003 Havoc Pennington <hp@xxxxxxxxxx> 2.0-14
- some background tweaks from Garrett

* Wed Jan 22 2003 Tim Powers <timp@xxxxxxxxxx>
- rebuilt

* Fri Dec  6 2002 Havoc Pennington <hp@xxxxxxxxxx>
- rebuild
- update redhat-backgrounds version

* Tue Sep  3 2002 Havoc Pennington <hp@xxxxxxxxxx>
- new redhat-backgrounds from CVS with new default

* Tue Aug 27 2002 Than Ngo <than@xxxxxxxxxx> 2.0-9
- add missing kdebase desktop backgrounds (bug #72508)

* Wed Aug 21 2002 Havoc Pennington <hp@xxxxxxxxxx>
- drop the beta placeholder in favor of final background

* Tue Aug 13 2002 Havoc Pennington <hp@xxxxxxxxxx>
- new redhat-backgrounds with wallpapers moved to tiles
- overwrite default.png with a placeholder

* Fri Aug  9 2002 Havoc Pennington <hp@xxxxxxxxxx>
- new redhat-backgrounds with default.png

* Mon Jul 22 2002 Havoc Pennington <hp@xxxxxxxxxx>
- new redhat-backgrounds from CVS with default.jpg

* Tue Jul 16 2002 Havoc Pennington <hp@xxxxxxxxxx>
- new images from Garrett added to -extra

* Fri Jun 21 2002 Tim Powers <timp@xxxxxxxxxx>
- automated rebuild

* Sun Jun 16 2002 Havoc Pennington <hp@xxxxxxxxxx>
- redo it, now it includes the tile/image collection
  redhat-backgrounds from CVS, plus propaganda
- move things to datadir/share/backgrounds/images 
  and datadir/share/backgrounds/wallpapers
- split into a small basic package and an extra package, 
  so we can have packages require the basic package
  without sucking in huge images
- move space images into devserv CVS
- move nautilus and kdebase tiles into devserv CVS

* Thu May 23 2002 Tim Powers <timp@xxxxxxxxxx>
- automated rebuild

* Wed Jan 09 2002 Tim Powers <timp@xxxxxxxxxx>
- automated rebuild

* Wed Jul 12 2000 Prospector <bugzilla@xxxxxxxxxx>
- automatic rebuild

* Thu Jun 29 2000 Dave Mason <dcm@xxxxxxxxxx>
- updated spec file to RPM guidelines

* Thu Jun 29 2000 Than Ngo <than@xxxxxxxxx>
- FHS fixes

* Tue Feb 01 2000 Preston Brown <pbrown@xxxxxxxxxx>
- new space backgrounds

* Fri Apr  2 1999 Jonathan Blandford <jrb@xxxxxxxxxx>
- added propaganda tiles.  Spruced it up a bit
- moved README files out of tarball, and into docs dir.

* Fri Mar 19 1999 Michael Fulbright <drmike@xxxxxxxxxx>
- First attempt
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux