fixed a couple makefile bugs, created specfile

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@63 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
imaginos
2005-04-02 23:51:45 +00:00
parent d052efe002
commit f8158b9e4b
3 changed files with 38 additions and 4 deletions
+1 -1
View File
@@ -35,4 +35,4 @@ clean:
install: znc @MODTARGET@
mkdir -p $(DEST)$(prefix)/bin
install -m 0711 znc $(DEST)$(prefix)/bin
(cd modules; $(DEST)$(MAKE))
(cd modules; $(MAKE) install DEST=$(DEST))
+3 -3
View File
@@ -14,13 +14,13 @@ depend::
g++ -M $(CXXFLAGS) $(SRCS) $(INCLUDES) >.depend
install: all create_install_dir $(INSTALL_TARGS)
install -m 0711 *.so $(prefix)/share/znc
install -m 0711 *.so $(DEST)$(prefix)/share/znc
create_install_dir:
mkdir -p $(prefix)/share/znc
mkdir -p $(DEST)$(prefix)/share/znc
install_%:
install -m 0711 $(subst install_,,$@) $(prefix)/share
install -m 0711 $(subst install_,,$@) $(DEST)$(prefix)/share
clean:
rm -rf *.so *.o core core.*
+34
View File
@@ -0,0 +1,34 @@
Name: znc
Version: 2.0
Release: 1
Packager: imaginos@imaginos.net
Summary: znc
License: GPL
Group: none
URL: http://sourceforge.net/projects/znc/
BuildRequires: gcc >= 3.2
BuildRequires: openssl >= 0.9b
BuildRoot: /tmp/znc-TMP/
Prefix: /usr
Source: znc.tar.gz
%description
ZNC is an IRC bounce with many advanced features like detaching, multiple users, per channel playback buffer, SSL, transparent DCC bouncing, and c++ module support to name a few.
%prep
%setup -n znc
%build
./configure --prefix=%{prefix}
make all
%clean
rm -rf $RPM_BUILD_ROOT
%install
make install DEST=$RPM_BUILD_ROOT
%files
%{prefix}