source: trunk/server/fedora/specs/zephyr.spec @ 1754

Last change on this file since 1754 was 1693, checked in by ezyang, 13 years ago
Merge Fedora 13 development back to trunk.
File size: 3.7 KB
RevLine 
[1633]1Name:           zephyr
2Version:        3.0
[1664]3Release:        0.%{scriptsversion}%{?dist}
4Summary:        Client programs for the Zephyr real-time messaging system
[1633]5
6Group:          Applications/Communications
7License:        MIT
8URL:            http://zephyr.1ts.org/
9Source0:        http://zephyr.1ts.org/export/HEAD/distribution/%{name}-%{version}.tar.gz
10Source1:        zhm.init
11BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
12
[1665]13BuildRequires:  krb5-devel hesiod-devel libss-devel libcom_err-devel readline-devel bison
[1664]14Requires:       %{name}-libs = %{version}-%{release}
[1633]15Requires(post): chkconfig
16Requires(preun): chkconfig
17Requires(preun): initscripts
18Requires(postun): initscripts
19
20%description
21Zephyr is an institutional/enterprise-scale distributed real-time messaging and
22notification system.  Zephyr's design choices seem to imbue it with a specific
23culture.  It is impossible to explain what Zephyr is, you must experience it
24for yourself.
25
26
[1664]27%package        server
28Summary:        Server for the Zephyr real-time messaging system
29Group:          System Environment/Daemons
30
31Requires:       %{name}-libs = %{version}-%{release}
32
33%description    server
34The %{name}-server package contains the server daemon for the Zephyr
35messaging service.  It maintains a location and subscription database
36for all the receiving clients, and routes all zephyrgrams to the
37intended recipients.
38
39
40%package        libs
41Summary:        Shared libraries for Zephyr real-time messaging system
42Group:          System Environment/Libraries
43
44%description    libs
45The %{name}-libs package contains shared libraries for applications
46that use %{name}.
47
48
49%package        devel
50Summary:        Development files for Zephyr real-time messaging system
51Group:          Development/Libraries
52
[1665]53Requires:       %{name}-libs = %{version}-%{release}, libcom_err-devel
[1664]54
55%description    devel
56The %{name}-devel package contains libraries and header files for
57developing applications that use %{name}.
58
59
[1633]60%prep
61%setup -q
[1635]62cp -p %{SOURCE1} .
[1633]63
64
65%build
66# Mitch wants to make an awesome specfile which makes hesiod/krb5 and friends
67# all fully configurable.  This configure line will have to do for now.
[1664]68%configure --with-hesiod --with-krb5 --disable-static
[1633]69sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
70sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
71make %{?_smp_mflags}
72
73
74%install
75rm -rf $RPM_BUILD_ROOT
76make install DESTDIR=$RPM_BUILD_ROOT libdir=%{_libdir}
[1664]77find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
[1633]78
[1635]79mkdir -p $RPM_BUILD_ROOT%{_initddir}
80install -m755 zhm.init \
81        $RPM_BUILD_ROOT%{_initddir}/zhm
[1633]82
83
84%post
85/sbin/chkconfig --add zhm
86
87
88%preun
89if [ $1 = 0 ] ; then
90    /sbin/service zhm stop >/dev/null 2>&1
91    /sbin/chkconfig --del zhm
92fi
93
94
95%postun
96if [ "$1" -ge "1" ] ; then
97    /sbin/service zhm condrestart >/dev/null 2>&1 || :
98fi
99
100
[1664]101%post           libs -p /sbin/ldconfig
102
103%postun         libs -p /sbin/ldconfig
104
105
[1633]106%clean
107rm -rf $RPM_BUILD_ROOT
108
109
110%files
111%defattr(-,root,root,-)
[1664]112%doc README USING
[1633]113%{_bindir}/*
[1664]114%{_sbindir}/zhm
115%{_sbindir}/zshutdown_notify
[1633]116%{_mandir}/man1/*
[1664]117%{_mandir}/man8/zhm.8*
118%{_mandir}/man8/zstat.8*
119%{_mandir}/man8/zshutdown_notify.8*
120%{_datadir}/zephyr
[1635]121%{_initddir}/zhm
[1633]122
123
[1664]124%files          server
125%doc OPERATING
126%{_sysconfdir}/zephyr
127%{_sbindir}/zephyrd
128%{_mandir}/man8/zephyrd.8*
129
130
131%files          libs
132%{_libdir}/*.so.*
133
134
135%files          devel
136%{_libdir}/*.so
137%{_includedir}/*
138
139
[1633]140%changelog
[1664]141* Sun Sep 19 2010 Anders Kaseorg <andersk@mit.edu> - 3.0-0
142- Decrease version below a hypothetical Fedora package.
143- Split out -server, -libs, and -devel into subpackages.
144- Disable the static library and remove the libtool archive.
145
[1633]146* Thu Sep 09 2010 Edward Z. Yang <ezyang@mit.edu> 3.0-1
147- Initial packaging release, superseding mit-zephyr.
Note: See TracBrowser for help on using the repository browser.