Changeset 1396 for trunk/server/fedora/specs
- Timestamp:
- Dec 27, 2009, 4:01:12 AM (15 years ago)
- 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 5 Summary: rpm packaging of moira libraries, clients, and friends. 2 6 Group: Applications/System 3 7 Name: moira 4 Version: 0.%{scriptsversion}5 Release: 08 Version: %{debversion} 9 Release: 2.%{scriptsversion}.%{upstreamversion} 6 10 Vendor: The scripts.mit.edu Team (scripts@mit.edu) 7 11 URL: http://scripts.mit.edu 8 License: GPL 9 Source: %{name}.tar.gz 10 Source1: debian/debathena-moira-update-server.init 12 License: MIT 13 Source: debathena-%{name}_%{debversion}+%{upstreamversion}.orig.tar.gz 11 14 BuildRoot: %{_tmppath}/%(%{__id_u} -n)-%{name}-%{version}-root 12 15 #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 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 15 19 16 20 %description 17 rpm packaging of libmoira21 rpm packaging of moira libraries, clients, and friends. 18 22 19 23 Source package for the moira library and clients. Clone of debathena-moira. … … 21 25 22 26 %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} 25 28 %patch0 -p1 29 %patch1 26 30 27 31 %build … … 43 47 %{buildroot}/%{_mandir}/man1/chfn.moira.1 44 48 install -m 755 -d %{buildroot}/%{_initddir} 45 install -m 755 %{SOURCE1}%{buildroot}/%{_initddir}/moira-update-server49 install -m 755 moira-update-server.init %{buildroot}/%{_initddir}/moira-update-server 46 50 # Hack: These man files are installed but no package uses them 47 51 rm %{buildroot}/%{_mandir}/man8/dcm.8 … … 56 60 rm -rf %{buildroot} 57 61 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 64 64 Summary: Clients for the Moira database 65 65 Group: Applications/System 66 %description moira-clients66 %description clients 67 67 Clients for the Moira database 68 68 … … 73 73 This package contains clients such as moira, stella, blanche, etc. 74 74 75 %files moira-clients 75 %files clients 76 %defattr(755,root,root) 76 77 %{_bindir}/addusr 77 78 %{_bindir}/blanche … … 91 92 %{_bindir}/usermaint 92 93 %{_bindir}/update_test 94 %defattr(-,root,root) 93 95 %doc %{_mandir}/man1/* 94 96 %doc %{_mandir}/man8/mrtest.8.gz 95 97 96 98 97 # moira-update-server98 %package moira-update-server99 # update-server 100 %package update-server 99 101 Summary: Athena update_server 100 102 Group: Applications/System 101 103 Requires(post): chkconfig 102 104 Requires(preun): chkconfig 103 %description moira-update-server105 %description update-server 104 106 Athena update_server 105 107 … … 111 113 servers that automatically receive information dumps from moira. 112 114 113 %files moira-update-server115 %files update-server 114 116 %defattr(-,root,root) 115 117 %doc %{_mandir}/man8/update_server.8.gz … … 119 121 %{_initddir}/moira-update-server 120 122 121 %post moira-update-server123 %post update-server 122 124 /sbin/chkconfig --add moira-update-server 125 %{_initddir}/moira-update-server condrestart 123 126 124 %preun moira-update-server127 %preun update-server 125 128 if [ $1 = 0 ] ; then 126 129 /sbin/service moira-update-server stop >/dev/null 2>&1 … … 129 132 130 133 # libmoira0 131 %package libmoira0134 %package -n libmoira0 132 135 Summary: The Moira library 133 136 Group: System Environment/Libraries 134 %description libmoira0137 %description -n libmoira0 135 138 The Moira library 136 139 … … 141 144 This package contains the shared Moira library. 142 145 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) 144 151 %{_libdir}/libmoira.so.* 145 152 146 # libmoira-dev 147 %package libmoira-dev153 # libmoira-devel 154 %package -n libmoira-devel 148 155 Summary: Development files for Moira library 149 156 Group: Development/Libraries 150 Provides: libmoira-dev 157 Provides: libmoira-devel 151 158 Requires: libmoira0 152 %description libmoira-dev159 %description -n libmoira-devel 153 160 Development files for Moira library 154 161 … … 159 166 This package contains headers and static libraries for development. 160 167 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 162 172 %defattr(-,root,root) 163 173 %{_includedir}/* … … 166 176 %{_libdir}/libmoira.la 167 177 %{_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.