Put header files in -devel package (bug #2058)
authorMark Spencer <markster@digium.com>
Fri, 16 Jul 2004 03:46:52 +0000 (03:46 +0000)
committerMark Spencer <markster@digium.com>
Fri, 16 Jul 2004 03:46:52 +0000 (03:46 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3444 65c4cc65-6c06-0410-ace0-fbb531ad65f3

redhat/asterisk.spec

index 592f354..d08792e 100755 (executable)
@@ -21,6 +21,14 @@ POTS, and IP telephony clients using the Inter-Asterisk eXchange
 protocol (e.g. gnophone or miniphone).  For more information and a
 current list of supported hardware, see www.asteriskpbx.com.
 
+%package        devel
+Summary:        Header files for building Asterisk modules
+Group:          Development/Libraries
+
+%description devel
+This package contains the development  header files that are needed
+to compile 3rd party modules.
+
 %post
 ln -sf /var/spool/asterisk/vm /var/lib/asterisk/sounds/vm
 
@@ -38,12 +46,6 @@ ln -sf /var/spool/asterisk/vm /var/lib/asterisk/sounds/vm
 %attr(0755,root,root)       /etc/rc.d/init.d/asterisk
 
 #
-# Include files
-#
-%attr(0755,root,root) %dir /usr/include/asterisk
-%attr(0644,root,root)      /usr/include/asterisk/*.h
-
-#
 # Modules
 #
 %attr(0755,root,root) %dir /usr/lib/asterisk
@@ -95,3 +97,10 @@ ln -sf /var/spool/asterisk/vm /var/lib/asterisk/sounds/vm
 %attr(0755,root,root) %dir /var/spool/asterisk/voicemail/default/1234
 %attr(0755,root,root) %dir /var/spool/asterisk/voicemail/default/1234/INBOX
 %attr(0644,root,root)      /var/spool/asterisk/voicemail/default/1234/*.gsm
+
+%files devel
+#
+# Include files
+#
+%attr(0755,root,root) %dir %{_includedir}/asterisk
+%attr(0644,root,root) %{_includedir}/asterisk/*.h