Name: mas Summary: Media Application Server Version: 0.6.2.1 #has to be increased every rpm build Release: 2 License: MIT #see /usr/share/doc/rpm-*/GROUPS for the group list Group: System Environment/Daemons URL: http://www.mediaapplicationserver.net/ #name off source file in /usr/src/redhat/SOURCES/ Source0: %{name}-%{version}.tar.gz Source1: mas-devtools-%{version}.tar.gz Source2: mas-control-apps-%{version}.tar.gz Patch0: masfedora.patch #Patch1: #packages needed to install #Requires: tcl >= 8.3 , tk >= 8.3 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root #packages needed by %pre and %post #Prereq: #packages needed for build (example: gtk2-devel) #BuildPrereq: #packages the package has conflicts with #Conflicts: %description Media Application Server (MAS) is a network transparent streaming media server. %package devtools Summary: Media Application Server development tools Group: Applications/System Requires: %name = %{version}-%{release} %description devtools Media Application Server (MAS) development tools %package control-apps Summary: Media Application Server control applications Group: Applications/System Requires: %name = %{version}-%{release} Requires: gtk2 >= 2.0 %description control-apps Media Application Server (MAS) control programmes. #unpack and apply patches %prep #unpack source code -q: quiet %setup %setup -D -T -b 1 %setup -D -T -b 2 #apply patch on source code %patch0 -p0 -b .fedora #all commands needed for building %build #configure properly packages that use autoconf and automake echo \#define ProjectRoot /usr >> config/site.def imake -I./config -DTOPDIR=. -DCURDIR=. make World #all commands needed for installing %install #removes old buildroots if exist rm -fr %{buildroot} #installs a autoconf/automake style package into your buildroot make DESTDIR=$RPM_BUILD_ROOT install %clean #cleanup your buildroot rm -fr %{buildroot} #all commands are executed after package install %post #echo package installed #all commands are executed just before package install %preun #echo begin install #all commands are executed after package removed %postun #echo package removed %files #default permissions (file permission, owner, group, directory permission) %defattr(-,root,root) #see /usr/lib/rmp/macros for all the %{_foo} %doc INSTALL LICENSE PORTING README RELNOTES %{_bindir}/maswavplay %{_bindir}/mas-config %{_bindir}/mas-launch %{_bindir}/masbench %{_bindir}/masmkmf %{_bindir}/massource_set %{_bindir}/mastestdev %{_bindir}/maswatchdog %{_bindir}/mas #%{_mandir}/* %{_datadir}/mas/* %{_libdir}/* %{_includedir}/mas/* #%{_defaultdocdir}/* %{_sysconfdir}/init.d/%{name} %files devtools %{_bindir}/masnetstat %{_bindir}/masget %{_bindir}/masset %{_bindir}/masloopback %{_bindir}/massource %{_bindir}/massink %{_bindir}/mascodectest %{_bindir}/masprobe %{_bindir}/mashost %files control-apps %{_bindir}/masconf_gui %{_bindir}/masmix %{_bindir}/masmm %{_bindir}/masplayer %{_bindir}/massignal %changelog #do date +"%a %b %d %Y" to get the correct date notation date #date has to be in English and month and weekday must begin with a capital letter * Sun Dec 28 2003 Kristof Vansant - made first fedora spec script for MAS * Tue Jan 27 2003 Kristof Vansant - made 1 spec file that creates mas, devtools and control-apps