* tk/Makefile.in: changed some tkmenu.* references to menu.*

* spec file mangling

* header include tweak

-Marc <marc@redhat.com>
This commit is contained in:
Marc Ewing 1998-04-01 17:40:17 +00:00
parent 0842a5390c
commit 8ba358df39
3 changed files with 68 additions and 240 deletions

View File

@ -16,8 +16,8 @@ INSTALL_DATA = @INSTALL_DATA@
DISTMAIN = configure configure.in NEWS README INSTALL INSTALL.FAST \
Makefile.in FAQ COPYING create_vcs install-sh \
config.h.in aclocal.m4 acconfig.h VERSION mcfn_install.in \
Make.common.in README.NT mc.spec.in mc.spec README.OS2 \
VERSION.in NLS mkinstalldirs
Make.common.in README.NT mc.spec Specfile \
README.OS2 VERSION.in NLS mkinstalldirs
all:
@for dir in ${unixdirs}; do \
@ -109,7 +109,7 @@ distdirs:
mkdir ../mc-$(VERSION)/edit;
distcopy:
sed "s/@VERSION@/$(VERSION)/" mc.spec.in > mc.spec
sed -e "s/^%define ver .*$/%define ver $(VERSION)/; s/%define rel .*$/^%define rel 1/" mc.spec > Specfile
sed "s/@VERSION@/$(VERSION)/" VERSION.in > VERSION
cp $(DISTMAIN) ../mc-$(VERSION);
cp po/Makefile.in.in ../mc-$(VERSION)/po;

96
mc.spec
View File

@ -1,7 +1,12 @@
# Note that this is NOT a relocatable package
%define ver 4.1.30
%define rel SNAP
%define prefix /usr
Summary: Midnight Commander visual shell
Name: mc
Version: 4.1.30
Release: 1
Version: %ver
Release: %rel
Copyright: GPL
Group: Shells
Source0: ftp://peyote-asesino.nuclecu.unam.mx/linux/local/devel/mc-%{PACKAGE_VERSION}.tar.gz
@ -22,10 +27,21 @@ Requires: mc
Group: X11/Shells
%description -n tkmc
Midnight Commander is a visual shell much like a file manager, only with
way more features. It is tk X window wersion. It's coolest feature is the
way more features. This is the Tk X window version.
It's coolest feature is the
ability to ftp, view tar, zip files and poke into RPMs for specific files.
The tk version of Midnight Commander is not yet finished though. :-(
%package -n gmc
Summary: Midnight Commander visual shell (GNOME version)
Requires: mc
Group: X11/Shells
%description -n gmc
Midnight Commander is a visual shell much like a file manager, only with
way more features. This is the GNOME version. It's coolest feature is the
ability to ftp, view tar, zip files and poke into RPMs for specific files.
The GNOME version of Midnight Commander is not yet finished though. :-(
%package -n mcserv
Summary: Midnight Commander file server
Group: X11/Shells
@ -39,20 +55,26 @@ Midnight file system (currently, only the Midnight Commander file manager).
%setup
%build
CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \
--prefix=/usr \
CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./autogen.sh \
--prefix=%{prefix} \
--with-tk \
--with-gnome \
--without-debug
make
if [ "$SMP" != "" ]; then
(make "MAKE=make -k -j $SMP"; exit 0)
make
else
make
fi
(cd tk; make tkmc)
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,profile.d,X11/wmconfig}
make prefix=$RPM_BUILD_ROOT/usr install
(cd icons; make prefix=$RPM_BUILD_ROOT/usr install_icons)
make prefix=$RPM_BUILD_ROOT%{prefix} install
(cd icons; make prefix=$RPM_BUILD_ROOT%{prefix} install_icons)
install lib/mcserv.init $RPM_BUILD_ROOT/etc/rc.d/init.d/mcserv
install lib/mcserv.pamd $RPM_BUILD_ROOT/etc/pam.d/mcserv
@ -70,33 +92,45 @@ rm -rf $RPM_BUILD_ROOT
/sbin/chkconfig --del mcserv
%files
%attr(-, root, root) %doc FAQ COPYING NEWS README
%attr(755, root, root) /usr/bin/mc
%attr(755, root, root) /usr/bin/mcedit
%attr(755, root, root) /usr/bin/mcmfmt
%attr(644, root, root) /usr/lib/mc/mc.ext
%attr(644, root, root) /usr/lib/mc/mc.hint
%attr(644, root, root) /usr/lib/mc/mc.hlp
%attr(644, root, root) /usr/lib/mc/mc.lib
%attr(644, root, root) /usr/lib/mc/mc.menu
%attr(755, root, root) /usr/lib/mc/bin/cons.saver
%attr(755, root, root) /usr/lib/mc/extfs/*
%attr(644, root, man) /usr/man/man1/*
%attr(755, root, root) %config /etc/profile.d/
%attr(755, root, root) %dir /usr/lib/mc/
%attr(755, root, root) %dir /usr/lib/mc/bin
%attr(755, root, root) %dir /usr/lib/mc/extfs
%defattr(-, root, root)
%doc FAQ COPYING NEWS README
/usr/bin/mc
/usr/bin/mcedit
/usr/bin/mcmfmt
/usr/lib/mc/mc.ext
/usr/lib/mc/mc.hint
/usr/lib/mc/mc.hlp
/usr/lib/mc/mc.lib
/usr/lib/mc/mc.menu
/usr/lib/mc/bin/cons.saver
/usr/lib/mc/extfs/*
/usr/man/man1/*
%config /etc/profile.d/*
%dir /usr/lib/mc
%dir /usr/lib/mc/bin
%dir /usr/lib/mc/extfs
%files -n mcserv
%attr(644, root, root) %config /etc/pam.d/mcserv
%attr(755, root, root) %config /etc/rc.d/init.d/mcserv
%attr(644, root, man) /usr/man/man8/mcserv.8
%attr(755, root, root) /usr/bin/mcserv
%defattr(-, root, root)
%config /etc/pam.d/mcserv
%config /etc/rc.d/init.d/mcserv
%attr(-, -, man) /usr/man/man8/mcserv.8
/usr/bin/mcserv
%files -n tkmc
%attr(755, root, root) /usr/bin/tkmc
%attr(644, root, root) /usr/lib/mc/*.tcl
%attr(644, root, root) %config(missingok) /etc/X11/wmconfig/tkmc
%defattr(-, root, root)
/usr/bin/tkmc
/usr/lib/mc/*.tcl
%config(missingok) /etc/X11/wmconfig/tkmc
%files -n gmc
%defattr(-, root, root)
/usr/bin/gmc
%changelog
* Tue Dec 23 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>

View File

@ -1,206 +0,0 @@
Summary: Midnight Commander visual shell
Name: mc
Version: @VERSION@
Release: 1
Copyright: GPL
Group: Shells
Source0: ftp://peyote-asesino.nuclecu.unam.mx/linux/local/devel/mc-%{PACKAGE_VERSION}.tar.gz
URL: http://mc.blackdown.org/mc/
BuildRoot: /tmp/mc-%{PACKAGE_VERSION}-root
Requires: pam >= 0.59
Prereq: /sbin/chkconfig
%description
Midnight Commander is a visual shell much like a file manager, only with way
more features. It is text mode, but also includes mouse support if you are
running GPM. Its coolest feature is the ability to ftp, view tar, zip
files, and poke into RPMs for specific files. :-)
%package -n tkmc
Summary: Midnight Commander visual shell (tk version)
Requires: mc
Group: X11/Shells
%description -n tkmc
Midnight Commander is a visual shell much like a file manager, only with
way more features. It is tk X window wersion. It's coolest feature is the
ability to ftp, view tar, zip files and poke into RPMs for specific files.
The tk version of Midnight Commander is not yet finished though. :-(
%package -n mcserv
Summary: Midnight Commander file server
Group: X11/Shells
Requires: portmap
%description -n mcserv
mcserv is the server program for the Midnight Commander networking file
system. It provides access to the host file system to clients running the
Midnight file system (currently, only the Midnight Commander file manager).
%prep
%setup
%build
CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \
--prefix=/usr \
--with-tk \
--without-debug
make
(cd tk; make tkmc)
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,profile.d,X11/wmconfig}
make prefix=$RPM_BUILD_ROOT/usr install
(cd icons; make prefix=$RPM_BUILD_ROOT/usr install_icons)
install lib/mcserv.init $RPM_BUILD_ROOT/etc/rc.d/init.d/mcserv
install lib/mcserv.pamd $RPM_BUILD_ROOT/etc/pam.d/mcserv
install lib/{mc.sh,mc.csh} $RPM_BUILD_ROOT/etc/profile.d
install lib/tkmc.wmconfig $RPM_BUILD_ROOT/etc/X11/wmconfig/tkmc
%clean
rm -rf $RPM_BUILD_ROOT
%post -n mcserv
/sbin/chkconfig --add mcserv
%postun -n mcserv
/sbin/chkconfig --del mcserv
%files
%attr(-, root, root) %doc FAQ COPYING NEWS README
%attr(755, root, root) /usr/bin/mc
%attr(755, root, root) /usr/bin/mcedit
%attr(755, root, root) /usr/bin/mcmfmt
%attr(644, root, root) /usr/lib/mc/mc.ext
%attr(644, root, root) /usr/lib/mc/mc.hint
%attr(644, root, root) /usr/lib/mc/mc.hlp
%attr(644, root, root) /usr/lib/mc/mc.lib
%attr(644, root, root) /usr/lib/mc/mc.menu
%attr(755, root, root) /usr/lib/mc/bin/cons.saver
%attr(755, root, root) /usr/lib/mc/extfs/*
%attr(644, root, man) /usr/man/man1/*
%attr(755, root, root) %config /etc/profile.d/
%attr(755, root, root) %dir /usr/lib/mc/
%attr(755, root, root) %dir /usr/lib/mc/bin
%attr(755, root, root) %dir /usr/lib/mc/extfs
%files -n mcserv
%attr(644, root, root) %config /etc/pam.d/mcserv
%attr(755, root, root) %config /etc/rc.d/init.d/mcserv
%attr(644, root, man) /usr/man/man8/mcserv.8
%attr(755, root, root) /usr/bin/mcserv
%files -n tkmc
%attr(755, root, root) /usr/bin/tkmc
%attr(644, root, root) /usr/lib/mc/*.tcl
%attr(644, root, root) %config(missingok) /etc/X11/wmconfig/tkmc
%changelog
* Tue Dec 23 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- added --without-debug to configure,
- modification in %build and %install and cosmetic modification in packages
headers,
- added %%{PACKAGE_VERSION} macro to Buildroot,
- removed "rm -rf $RPM_BUILD_ROOT" from %prep.
- removed Packager field.
* Thu Dec 18 1997 Michele Marziani <marziani@fe.infn.it>
- Merged spec file with that from RedHat-5.0 distribution
(now a Hurricane-based distribution is needed)
- Added patch for RPM script (didn't always work with rpm-2.4.10)
- Corrected patch for mcserv init file (chkconfig init levels)
- Added more documentation files on termcap, terminfo, xterm
* Thu Oct 30 1997 Michael K. Johnson <johnsonm@redhat.com>
- Added dependency on portmap
* Wed Oct 29 1997 Michael K. Johnson <johnsonm@redhat.com>
- fixed spec file.
- Updated to 4.1.8
* Sun Oct 26 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- updated to 4.1.6
- added %attr macros in %files,
- a few simplification in %install,
- removed glibc patch,
- fixed installing /etc/X11/wmconfig/tkmc.
* Thu Oct 23 1997 Michael K. Johnson <johnsonm@redhat.com>
- updated to 4.1.5
- added wmconfig
* Wed Oct 15 1997 Erik Troan <ewt@redhat.com>
- chkconfig is for mcserv package, not mc one
* Tue Oct 14 1997 Erik Troan <ewt@redhat.com>
- patched init script for chkconfig
- don't turn on the service by default
* Fri Oct 10 1997 Michael K. Johnson <johnsonm@redhat.com>
- Converted to new PAM conventions.
- Updated to 4.1.3
- No longer needs glibc patch.
* Thu May 22 1997 Michele Marziani <marziani@fe.infn.it>
- added support for mc alias in /etc/profile.d/mc.csh (for csh and tcsh)
- lowered number of SysV init scripts in /etc/rc.d/rc[0,1,6].d
(mcserv needs to be killed before inet)
- removed all references to $RPM_SOURCE_DIR
- restored $RPM_OPT_FLAGS when compiling
- minor cleanup of spec file: redundant directives and comments removed
* Sun May 18 1997 Michele Marziani <marziani@fe.infn.it>
- removed all references to non-existent mc.rpmfs
- added mcedit.1 to the %files section
- reverted to un-gzipped man pages (RedHat style)
- removed double install line for mcserv.pamd
* Tue May 13 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- added new rpmfs script,
- removed mcfn_install from mc (adding mc() to bash enviroment is in
/etc/profile.d/mc.sh),
- /etc/profile.d/mc.sh changed to %config,
- removed /usr/lib/mc/bin/create_vcs,
- removed /usr/lib/mc/term.
* Wed May 9 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- changed source url,
- fixed link mcedit to mc,
* Tue May 7 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- new version 3.5.27,
- %dir /usr/lib/mc/icons and icons removed from tkmc,
- added commented xmc part.
* Tue Apr 22 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- FIX spec:
- added URL field,
- in mc added missing /usr/lib/mc/mc.ext, /usr/lib/mc/mc.hint,
/usr/lib/mc/mc.hlp, /usr/lib/mc/mc.lib, /usr/lib/mc/mc.menu.
* Fri Apr 18 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- added making packages: tkmc, mcserv (xmc not work yet),
- gziped man pages,
- added /etc/pamd.d/mcserv PAM config file.
- added instaling icons,
- added /etc/profile.d/mc.sh,
- in %doc added NEWS README,
- removed /usr/lib/mc/FAQ,
- added mcserv.init script for mcserv (start/stop on level 86).