Ignore:
Timestamp:
Dec 27, 2009, 4:01:12 AM (15 years ago)
Author:
gdb
Message:
Built and mildly tested moira RPM
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/fedora/specs/moira.spec

    r1394 r1396  
    1 Summary: rpm packaging of libmoira
     1# Make sure to update these to coincide with the most recent debathena-moira
     2# release from http://debathena.mit.edu/apt/pool/debathena/d/debathena-moira/
     3%define debversion 4.0.0
     4%define upstreamversion cvs20091116
     5Summary: rpm packaging of moira libraries, clients, and friends.
    26Group: Applications/System
    37Name: moira
    4 Version: 0.%{scriptsversion}
    5 Release: 0
     8Version: %{debversion}
     9Release: 2.%{scriptsversion}.%{upstreamversion}
    610Vendor: The scripts.mit.edu Team (scripts@mit.edu)
    711URL: http://scripts.mit.edu
    8 License: GPL
    9 Source: %{name}.tar.gz
    10 Source1: debian/debathena-moira-update-server.init
     12License: MIT
     13Source: debathena-%{name}_%{debversion}+%{upstreamversion}.orig.tar.gz
    1114BuildRoot: %{_tmppath}/%(%{__id_u} -n)-%{name}-%{version}-root
    1215#TODO: might really need mit-zephyr-devel, something for autotools-dev
    13 BuildRequires: readline-devel, patch, e2fsprogs-devel, mit-zephyr, ncurses-devel, krb5-devel, hesiod-devel
    14 patch0: debian/patches/install-headers
     16BuildRequires: readline-devel, e2fsprogs-devel, mit-zephyr, ncurses-devel, krb5-devel, hesiod-devel
     17Patch0: moira-install-headers.patch
     18Patch1: moira-update-server.rc.patch
    1519
    1620%description
    17 rpm packaging of libmoira
     21rpm packaging of moira libraries, clients, and friends.
    1822
    1923Source package for the moira library and clients.  Clone of debathena-moira.
     
    2125
    2226%prep
    23 %setup -q -n %{name}
    24 cp -p /home/scripts-build/test/trunk/server/fedora/specs/mybuild/moira-update-server.init %{SOURCE1}
     27%setup -q -n debathena-%{name}-%{debversion}+%{upstreamversion}
    2528%patch0 -p1
     29%patch1
    2630
    2731%build
     
    4347   %{buildroot}/%{_mandir}/man1/chfn.moira.1
    4448install -m 755 -d %{buildroot}/%{_initddir}
    45 install -m 755 %{SOURCE1} %{buildroot}/%{_initddir}/moira-update-server
     49install -m 755 moira-update-server.init %{buildroot}/%{_initddir}/moira-update-server
    4650# Hack: These man files are installed but no package uses them
    4751rm %{buildroot}/%{_mandir}/man8/dcm.8
     
    5660rm -rf %{buildroot}
    5761
    58 %changelog
    59 * Fri Dec 26 2009  Greg Brockman <gdb@mit.edu>
    60 - prerelease
    61 
    62 # moira-clients
    63 %package moira-clients
     62# clients
     63%package clients
    6464Summary: Clients for the Moira database
    6565Group: Applications/System
    66 %description moira-clients
     66%description clients
    6767Clients for the Moira database
    6868
     
    7373This package contains clients such as moira, stella, blanche, etc.
    7474
    75 %files moira-clients
     75%files clients
     76%defattr(755,root,root)
    7677%{_bindir}/addusr
    7778%{_bindir}/blanche
     
    9192%{_bindir}/usermaint
    9293%{_bindir}/update_test
     94%defattr(-,root,root)
    9395%doc %{_mandir}/man1/*
    9496%doc %{_mandir}/man8/mrtest.8.gz
    9597
    9698
    97 # moira-update-server
    98 %package moira-update-server
     99# update-server
     100%package update-server
    99101Summary: Athena update_server
    100102Group: Applications/System
    101103Requires(post): chkconfig
    102104Requires(preun): chkconfig
    103 %description moira-update-server
     105%description update-server
    104106Athena update_server
    105107
     
    111113servers that automatically receive information dumps from moira.
    112114
    113 %files moira-update-server
     115%files update-server
    114116%defattr(-,root,root)
    115117%doc %{_mandir}/man8/update_server.8.gz
     
    119121%{_initddir}/moira-update-server
    120122
    121 %post moira-update-server
     123%post update-server
    122124/sbin/chkconfig --add moira-update-server
     125%{_initddir}/moira-update-server condrestart
    123126
    124 %preun moira-update-server
     127%preun update-server
    125128if [ $1 = 0 ] ; then
    126129    /sbin/service moira-update-server stop >/dev/null 2>&1
     
    129132
    130133# libmoira0
    131 %package libmoira0
     134%package -n libmoira0
    132135Summary: The Moira library
    133136Group: System Environment/Libraries
    134 %description libmoira0
     137%description -n libmoira0
    135138The Moira library
    136139
     
    141144This package contains the shared Moira library.
    142145
    143 %files libmoira0
     146%post -n libmoira0 -p /sbin/ldconfig
     147%postun -n libmoira0 -p /sbin/ldconfig
     148
     149%files -n libmoira0
     150%defattr(-,root,root)
    144151%{_libdir}/libmoira.so.*
    145152
    146 # libmoira-dev
    147 %package libmoira-dev
     153# libmoira-devel
     154%package -n libmoira-devel
    148155Summary: Development files for Moira library
    149156Group: Development/Libraries
    150 Provides: libmoira-dev
     157Provides: libmoira-devel
    151158Requires: libmoira0
    152 %description libmoira-dev
     159%description -n libmoira-devel
    153160Development files for Moira library
    154161
     
    159166This package contains headers and static libraries for development.
    160167
    161 %files libmoira-dev
     168%post -n libmoira-devel -p /sbin/ldconfig
     169%postun -n libmoira-devel -p /sbin/ldconfig
     170
     171%files -n libmoira-devel
    162172%defattr(-,root,root)
    163173%{_includedir}/*
     
    166176%{_libdir}/libmoira.la
    167177%{_libdir}/libmoira.a
     178
     179%changelog
     180* Sat Dec 26 2009 Greg Brockman <gdb@mit.edu> - 4.0.0-2.1380.cvs20091116
     181- Initial packaging of Moira on Fedora
Note: See TracChangeset for help on using the changeset viewer.