[1396] | 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/ |
---|
[1397] | 3 | %define upstreamversion 4.0.0 |
---|
| 4 | %define snapshotversion cvs20091116 |
---|
[1398] | 5 | Summary: rpm packaging moira libraries, clients, and friends |
---|
[1394] | 6 | Group: Applications/System |
---|
| 7 | Name: moira |
---|
[1397] | 8 | Version: %{upstreamversion} |
---|
| 9 | Release: 1.%{scriptsversion}.%{snapshotversion} |
---|
[1394] | 10 | Vendor: The scripts.mit.edu Team (scripts@mit.edu) |
---|
| 11 | URL: http://scripts.mit.edu |
---|
[1396] | 12 | License: MIT |
---|
[1397] | 13 | Source: debathena-%{name}_%{upstreamversion}+%{snapshotversion}.orig.tar.gz |
---|
[1394] | 14 | BuildRoot: %{_tmppath}/%(%{__id_u} -n)-%{name}-%{version}-root |
---|
| 15 | #TODO: might really need mit-zephyr-devel, something for autotools-dev |
---|
[1396] | 16 | BuildRequires: readline-devel, e2fsprogs-devel, mit-zephyr, ncurses-devel, krb5-devel, hesiod-devel |
---|
| 17 | Patch0: moira-install-headers.patch |
---|
| 18 | Patch1: moira-update-server.rc.patch |
---|
[1394] | 19 | |
---|
| 20 | %description |
---|
[1398] | 21 | rpm packaging moira libraries, clients, and friends |
---|
[1394] | 22 | |
---|
| 23 | Source package for the moira library and clients. Clone of debathena-moira. |
---|
| 24 | See http://scripts.mit.edu/wiki for more information. |
---|
| 25 | |
---|
| 26 | %prep |
---|
[1397] | 27 | %setup -q -n debathena-%{name}-%{upstreamversion}+%{snapshotversion} |
---|
[1394] | 28 | %patch0 -p1 |
---|
[1396] | 29 | %patch1 |
---|
[1394] | 30 | |
---|
| 31 | %build |
---|
| 32 | # Hack: Add /usr/include/et to put com_err.h on the C include path. |
---|
| 33 | # Can remove this once the maintainer of the relevant package symlinks |
---|
| 34 | # com_err.h in /usr/include. |
---|
| 35 | # TODO: --with-zephyr is currently borked |
---|
| 36 | %configure --without-krb4 --with-krb5 --with-hesiod --without-zephyr --without-oracle --without-afs --disable-rpath --with-com_err=/usr CFLAGS='-I /usr/include/et' |
---|
| 37 | make %{?_smp_mflags} |
---|
| 38 | |
---|
| 39 | %install |
---|
| 40 | rm -rf %{buildroot} |
---|
| 41 | make install DESTDIR=%{buildroot} |
---|
| 42 | mv %{buildroot}/%{_bindir}/chfn %{buildroot}/%{_bindir}/chfn.moira |
---|
| 43 | mv %{buildroot}/%{_bindir}/chsh %{buildroot}/%{_bindir}/chsh.moira |
---|
| 44 | mv %{buildroot}/%{_mandir}/man1/chsh.1 \ |
---|
| 45 | %{buildroot}/%{_mandir}/man1/chsh.moira.1 |
---|
| 46 | mv %{buildroot}/%{_mandir}/man1/chfn.1 \ |
---|
| 47 | %{buildroot}/%{_mandir}/man1/chfn.moira.1 |
---|
| 48 | install -m 755 -d %{buildroot}/%{_initddir} |
---|
[1396] | 49 | install -m 755 moira-update-server.init %{buildroot}/%{_initddir}/moira-update-server |
---|
[1394] | 50 | # Hack: These man files are installed but no package uses them |
---|
| 51 | rm %{buildroot}/%{_mandir}/man8/dcm.8 |
---|
| 52 | rm %{buildroot}/%{_mandir}/man8/moirad.8 |
---|
| 53 | rm %{buildroot}/%{_mandir}/man8/reg_svr.8 |
---|
| 54 | rm %{buildroot}/%{_mandir}/man8/setquota.8 |
---|
| 55 | rm %{buildroot}/%{_mandir}/man8/startdcm.8 |
---|
| 56 | rm %{buildroot}/%{_mandir}/man8/startmoira.8 |
---|
| 57 | rm %{buildroot}/%{_mandir}/man8/startreg.8 |
---|
| 58 | |
---|
| 59 | %clean |
---|
| 60 | rm -rf %{buildroot} |
---|
| 61 | |
---|
[1396] | 62 | # clients |
---|
| 63 | %package clients |
---|
[1394] | 64 | Summary: Clients for the Moira database |
---|
| 65 | Group: Applications/System |
---|
[1397] | 66 | # Might need mit-zephyr-devel |
---|
| 67 | # Requires: mit-zephyr |
---|
[1396] | 68 | %description clients |
---|
[1394] | 69 | Clients for the Moira database |
---|
| 70 | |
---|
| 71 | Moira is the Athena Service Management system. It serves as the |
---|
| 72 | central repository for information about users, groups hosts, print |
---|
| 73 | queues, and several other aspects of the Athena environment. |
---|
| 74 | |
---|
| 75 | This package contains clients such as moira, stella, blanche, etc. |
---|
| 76 | |
---|
[1396] | 77 | %files clients |
---|
| 78 | %defattr(755,root,root) |
---|
[1394] | 79 | %{_bindir}/addusr |
---|
| 80 | %{_bindir}/blanche |
---|
| 81 | %{_bindir}/chfn.moira |
---|
| 82 | %{_bindir}/chpobox |
---|
| 83 | %{_bindir}/chsh.moira |
---|
| 84 | %{_bindir}/mitch |
---|
| 85 | %{_bindir}/namespace |
---|
| 86 | %{_bindir}/moira |
---|
| 87 | %{_bindir}/mrcheck |
---|
| 88 | %{_bindir}/mrtest |
---|
| 89 | %{_bindir}/stanley |
---|
| 90 | %{_bindir}/stella |
---|
| 91 | %{_bindir}/mailmaint |
---|
| 92 | %{_bindir}/listmaint |
---|
| 93 | %{_bindir}/dcmmaint |
---|
| 94 | %{_bindir}/usermaint |
---|
| 95 | %{_bindir}/update_test |
---|
[1396] | 96 | %defattr(-,root,root) |
---|
[1394] | 97 | %doc %{_mandir}/man1/* |
---|
| 98 | %doc %{_mandir}/man8/mrtest.8.gz |
---|
| 99 | |
---|
| 100 | |
---|
[1396] | 101 | # update-server |
---|
| 102 | %package update-server |
---|
[1394] | 103 | Summary: Athena update_server |
---|
| 104 | Group: Applications/System |
---|
[1397] | 105 | # Might need mit-zephyr-devel |
---|
| 106 | # Requires: mit-zephyr |
---|
[1394] | 107 | Requires(post): chkconfig |
---|
| 108 | Requires(preun): chkconfig |
---|
[1396] | 109 | %description update-server |
---|
[1394] | 110 | Athena update_server |
---|
| 111 | |
---|
| 112 | Moira is the Athena Service Management system. It serves as the |
---|
| 113 | central repository for information about users, groups hosts, print |
---|
| 114 | queues, and several other aspects of the Athena environment. |
---|
| 115 | |
---|
| 116 | This package contains the update_server daemon, which is used for |
---|
| 117 | servers that automatically receive information dumps from moira. |
---|
| 118 | |
---|
[1396] | 119 | %files update-server |
---|
[1394] | 120 | %defattr(-,root,root) |
---|
| 121 | %doc %{_mandir}/man8/update_server.8.gz |
---|
| 122 | %config(noreplace) %{_sysconfdir}/athena/moira.conf |
---|
| 123 | %defattr(755,root,root) |
---|
| 124 | %{_sbindir}/update_server |
---|
| 125 | %{_initddir}/moira-update-server |
---|
| 126 | |
---|
[1396] | 127 | %post update-server |
---|
[1394] | 128 | /sbin/chkconfig --add moira-update-server |
---|
[1396] | 129 | %{_initddir}/moira-update-server condrestart |
---|
[1394] | 130 | |
---|
[1396] | 131 | %preun update-server |
---|
[1394] | 132 | if [ $1 = 0 ] ; then |
---|
| 133 | /sbin/service moira-update-server stop >/dev/null 2>&1 |
---|
| 134 | /sbin/chkconfig --del moira-update-server |
---|
| 135 | fi |
---|
| 136 | |
---|
| 137 | # libmoira0 |
---|
[1396] | 138 | %package -n libmoira0 |
---|
[1394] | 139 | Summary: The Moira library |
---|
| 140 | Group: System Environment/Libraries |
---|
[1396] | 141 | %description -n libmoira0 |
---|
[1394] | 142 | The Moira library |
---|
| 143 | |
---|
| 144 | Moira is the Athena Service Management system. It serves as the |
---|
| 145 | central repository for information about users, groups hosts, print |
---|
| 146 | queues, and several other aspects of the Athena environment. |
---|
| 147 | |
---|
| 148 | This package contains the shared Moira library. |
---|
| 149 | |
---|
[1396] | 150 | %post -n libmoira0 -p /sbin/ldconfig |
---|
| 151 | %postun -n libmoira0 -p /sbin/ldconfig |
---|
| 152 | |
---|
| 153 | %files -n libmoira0 |
---|
| 154 | %defattr(-,root,root) |
---|
[1394] | 155 | %{_libdir}/libmoira.so.* |
---|
| 156 | |
---|
[1396] | 157 | # libmoira-devel |
---|
| 158 | %package -n libmoira-devel |
---|
[1394] | 159 | Summary: Development files for Moira library |
---|
| 160 | Group: Development/Libraries |
---|
[1397] | 161 | # Might need mit-zephyr-devel |
---|
| 162 | # Requires: mit-zephyr |
---|
| 163 | Requires: libmoira0 = %{version}-%{release}, e2fsprogs-devel, krb5-devel, hesiod-devel |
---|
[1396] | 164 | %description -n libmoira-devel |
---|
[1394] | 165 | Development files for Moira library |
---|
| 166 | |
---|
| 167 | Moira is the Athena Service Management system. It serves as the |
---|
| 168 | central repository for information about users, groups hosts, print |
---|
| 169 | queues, and several other aspects of the Athena environment. |
---|
| 170 | |
---|
| 171 | This package contains headers and static libraries for development. |
---|
| 172 | |
---|
[1396] | 173 | %post -n libmoira-devel -p /sbin/ldconfig |
---|
| 174 | %postun -n libmoira-devel -p /sbin/ldconfig |
---|
| 175 | |
---|
| 176 | %files -n libmoira-devel |
---|
[1394] | 177 | %defattr(-,root,root) |
---|
| 178 | %{_includedir}/* |
---|
| 179 | %doc %{_mandir}/man3/* |
---|
| 180 | %{_libdir}/libmoira.so |
---|
| 181 | %{_libdir}/libmoira.la |
---|
| 182 | %{_libdir}/libmoira.a |
---|
[1396] | 183 | |
---|
| 184 | %changelog |
---|
| 185 | * Sat Dec 26 2009 Greg Brockman <gdb@mit.edu> - 4.0.0-2.1380.cvs20091116 |
---|
| 186 | - Initial packaging of Moira on Fedora |
---|