xephem/xephem.spec

163 lines
5.3 KiB
RPMSpec

Name: xephem
Version: 3.7.3
Release: 2mamba
Summary: Astronomical Software Ephemeris
Group: Graphical Desktop/Applications/Educational
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.clearskyinstitute.com/xephem/
Source: http://www.clearskyinstitute.com/xephem/%{name}-%{version}.tar.bz2
Source1: XEphem.desktop
Source2: XEphem.kdelnk
Source3: XEphem.png
Source4: XEphem.xpm
Source5: mini-XEphem.xpm
Source6: v3.4-catalogs.tar.bz2
Patch0: XEphem-Imakefile.patch
Patch1: indi.patch
Patch2: %{name}-3.7.3-libXm.patch
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libjpeg-devel
BuildRequires: liblesstif-devel
BuildRequires: libpng-devel
BuildRequires: libX11-devel
BuildRequires: libXext-devel
BuildRequires: libXmu-devel
BuildRequires: libXp-devel
BuildRequires: libXt-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
License: Distributable
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
XEphem is an interactive astronomical ephemeris program for X Windows systems with OpenMotif.
%prep
%setup -q -a6
%patch2 -p1
#%patch0 -p1
#%patch1 -p1
%build
cd GUI/xephem
make MOTIFL=/usr/lib
cd tools/lx200xed
make
cd ../indi
make
cd ../xedb
make
cd ../xephemdbd
make
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
XS=GUI/xephem
XL=$RPM_BUILD_ROOT/usr/lib/xephem
mkdir -p $RPM_BUILD_ROOT/usr/bin
mkdir -p $RPM_BUILD_ROOT/usr/lib/xephem
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1
mkdir -p $RPM_BUILD_ROOT%{_libdir}/X11/app-defaults
mkdir -p $RPM_BUILD_ROOT/usr/share/gnome/apps/Astro
mkdir -p $RPM_BUILD_ROOT/usr/share/applnk/Edutainment/Science/Edutainment/Science
mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps
mkdir -p $RPM_BUILD_ROOT/usr/share/icons/mini
mkdir -p $RPM_BUILD_ROOT/usr/lib/xephem/tools/lx200xed
mkdir -p $RPM_BUILD_ROOT/usr/lib/xephem/tools/xephemdbd
mkdir -p $RPM_BUILD_ROOT/usr/lib/xephem/tools/xedb
mkdir -p $RPM_BUILD_ROOT/usr/lib/xephem/tools/indi
cp $RPM_SOURCE_DIR/XEphem.desktop $RPM_BUILD_ROOT/usr/share/gnome/apps/Astro/.
cp $RPM_SOURCE_DIR/XEphem.kdelnk $RPM_BUILD_ROOT/usr/share/applnk/Edutainment/Science/
cp $RPM_SOURCE_DIR/XEphem.png $RPM_BUILD_ROOT/usr/share/pixmaps/.
cp $RPM_SOURCE_DIR/XEphem.xpm $RPM_BUILD_ROOT/usr/share/icons/.
cp $RPM_SOURCE_DIR/mini-XEphem.xpm $RPM_BUILD_ROOT/usr/share/icons/mini/.
cp *.edb $XS/catalogs/
install -D -m 755 $XS/xephem $RPM_BUILD_ROOT/usr/bin/xephem
install -s -m 755 $XS/tools/lx200xed/lx200xed $XL/tools/lx200xed
install -s -m 755 $XS/tools/xedb/xedb $XL/tools/xedb
install -s -m 755 $XS/tools/xephemdbd/xephemdbd $XL/tools/xephemdbd
install -D -m 755 $XS/tools/xephemdbd/start-xephemdbd.pl $XL/tools/xephemdbd/start-xephemdbd.pl
install -D -m 755 $XS/tools/xephemdbd/xephemdbd.pl $XL/tools/xephemdbd/xephemdbd.pl
install -D -m 755 $XS/tools/xephemdbd/cgi-lib.pl $XL/tools/xephemdbd/cgi-lib.pl
cd $XS/tools
find . -name "*.[coh]" -exec rm -f \{\} \;
cd -
install -m 644 $XS/xephem.man $RPM_BUILD_ROOT%{_mandir}/man1/xephem.1x
gzip -v $RPM_BUILD_ROOT%{_mandir}/man1/xephem.1x
install -d -m 755 $XL/auxil
install -d -m 755 $XL/catalogs
install -d -m 755 $XL/fifos
install -d -m 755 $XL/fits
install -d -m 755 $XL/tools
install -d -m 755 $XL/tools/xephemdbd
install -d -m 755 $XL/tools/lx200xed
install -d -m 755 $XL/tools/xedb
install -d -m 755 $XL/tools/indi
install -m 644 $XS/auxil/* $XL/auxil
install -m 644 $XS/catalogs/* $XL/catalogs
install -m 644 $XS/fifos/* $XL/fifos
install -m 644 $XS/tools/indi/README $XL/tools/indi
install -m 644 $XS/tools/xedb/README $XL/tools/xedb
install -m 644 $XS/tools/xedb/sample.res $XL/tools/xedb
install -m 644 $XS/tools/lx200xed/README $XL/tools/lx200xed
install -m 644 $XS/tools/xephemdbd/* $XL/tools/xephemdbd
echo "XEphem.ShareDir: /usr/lib/xephem" > $RPM_BUILD_ROOT/%{_libdir}/X11/app-defaults/XEphem
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc INSTALL README
%{_libdir}/X11/app-defaults/XEphem
%{_bindir}/*
%dir %{_libdir}/xephem/auxil
%{_libdir}/xephem/auxil/*
%dir %{_libdir}/xephem/catalogs
%{_libdir}/xephem/catalogs/*
%dir %{_libdir}/xephem/fifos/
%{_libdir}/xephem/fifos/*
%{_libdir}/xephem/tools/indi/README
%{_libdir}/xephem/tools/lx200xed/README
%{_libdir}/xephem/tools/lx200xed/lx200xed
%{_libdir}/xephem/tools/xedb/README
%{_libdir}/xephem/tools/xedb/sample.res
%{_libdir}/xephem/tools/xedb/xedb
%{_libdir}/xephem/tools/xephemdbd/INSTALL
%{_libdir}/xephem/tools/xephemdbd/Makefile
%{_libdir}/xephem/tools/xephemdbd/README
%{_libdir}/xephem/tools/xephemdbd/cgi-lib.pl
%{_libdir}/xephem/tools/xephemdbd/start-xephemdbd.pl
%{_libdir}/xephem/tools/xephemdbd/xephemdbd
%{_libdir}/xephem/tools/xephemdbd/xephemdbd.html
%{_libdir}/xephem/tools/xephemdbd/xephemdbd.pl
%{_datadir}/applnk/Edutainment/Science/XEphem.kdelnk
%{_datadir}/gnome/apps/Astro/XEphem.desktop
%{_datadir}/icons/XEphem.xpm
%{_datadir}/icons/mini/mini-XEphem.xpm
%{_datadir}/pixmaps/XEphem.png
%{_mandir}/man1/xephem.1x.gz
%changelog
* Thu Jul 11 2013 Automatic Build System <autodist@mambasoft.it> 3.7.3-2mamba
- automatic rebuild by autodist
* Tue Apr 14 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 3.7.3-1mamba
- update to 3.7.3
* Thu Jul 14 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 3.6.4-1qilnx
- package created by autospec