From 5de01235b6107d8875aff5887f6358838d00cc87 Mon Sep 17 00:00:00 2001
From: Mark Spencer <markster@digium.com>
Date: Fri, 16 Jul 2004 03:46:52 +0000
Subject: [PATCH] Put header files in -devel package (bug #2058)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3444 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 redhat/asterisk.spec | 21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)

diff --git a/redhat/asterisk.spec b/redhat/asterisk.spec
index 592f354042..d08792e024 100755
--- a/redhat/asterisk.spec
+++ b/redhat/asterisk.spec
@@ -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
 
@@ -37,12 +45,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
 #
@@ -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
-- 
GitLab